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.
On Sunday, September 17, 2023 at 7:49:35 PM UTC+1 Mehran Aliyari wrote:

> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@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.

Reply via email to