Django version 4.2.5 not path in Windows 10

64 views
Skip to first unread message

Mehran Aliyari

unread,
Sep 17, 2023, 2:49:35 PM9/17/23
to Django users
Hello
Sorry, Django version 4.2.5 is installed in Windows 10, but the path is not available. How can I fix this, please help me. I just started, but I still haven't passed the path stage, please help me

Agbeniga Ambali

unread,
Sep 19, 2023, 6:14:57 PM9/19/23
to Django users
If you have not solved it, I believe this will work.

1. Verify Django Installation:
First, make sure that Django is correctly installed on your system. You can do this by opening a command prompt and running the following command:
python -m django --version

2. Add Django to the PATH:
To access Django globally from the command line, you need to add the directory containing the django-admin script to your system's PATH. Follow these steps to do that:
a. Find the Django Scripts Directory:
Locate the directory where Django is installed. By default, Django scripts are located in the Scripts directory within your Python installation. The path might look like this:
C:\Users\<YourUsername>\AppData\Local\Programs\Python\<PythonVersion>\Scripts

b. Add the Directory to PATH:
Now, you need to add this directory to your system's PATH:

i. Open the Windows Start menu and search for "Environment Variables" and select "Edit the system environment variables."

ii. In the System Properties window, click the "Environment Variables" button.

iii. Under "System variables," scroll down and find the "Path" variable. Select it and click the "Edit" button.

iv. In the Edit Environment Variable window, click the "New" button, and then paste the path to the Django scripts directory that you found in step 

2a.
v. Click "OK" on all the open windows to save your changes.

Verify Django Installation Again:
After adding the Django scripts directory to the PATH, open a new command prompt window and run the following command to ensure Django is accessible:
python -m django --version
It should now display the Django version without any errors.

Agbeniga Ambali

unread,
Sep 20, 2023, 8:39:34 AM9/20/23
to django...@googlegroups.com
What's the issue you are having after following my suggested solution?
Did you restart after you were done?, Were you able to see the path specified? If you follow the instruction very well, it should work appropriately.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/Hne_czZE-h4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c07bc361-c179-4345-88e1-39fc00c000adn%40googlegroups.com.

Agbeniga Ambali

unread,
Sep 20, 2023, 8:59:59 AM9/20/23
to django...@googlegroups.com
Follow this link and you will be happy.
https://www.youtube.com/watch?v=16i-Gc1Ecuc
Reply all
Reply to author
Forward
0 new messages