0
votes

I tried starting my own project in Django but I keep getting "'django-admin' is not recognized as an internal or external command, operable program or batch file."

C:\>cd C:\Users\Gamer Grill\Desktop

C:\Users\Gamer Grill\Desktop>mkdir django-practise

C:\Users\Gamer Grill\Desktop>cd django-practise

C:\Users\Gamer Grill\Desktop\django-practise>mkdir my_first_project

C:\Users\Gamer Grill\Desktop\django-practise>django-admin startproject first_project
'django-admin' is not recognized
1
Read this documentation. You have to add django-admin.exe to your system PATH for it to be found in your shell.Mihai Chelaru
@MihaiChelaru i got it! thank youGrill

1 Answers

0
votes

At the time of writing, Python 3.7 is the latest version. Open the command prompt and check that the Python version matches the version:

...\> py --version

Now you can verify your Django installation by executing in the command prompt:

...\> django-admin --version

If you still have problems executing the above command, please install Django by executing in the command prompt:

...\> py -m pip install Django

After the installation has completed, you can verify your Django installation.

Regards.