'django-admin' is not recognized as an internal or external command, operable program or batch file... So I am getting this error in terminal. I am trying to build an app. First I opened a folder(page) in my computer D drive and then opened Visual Studio Code. From there I opened the folder(page) and from view I opened terminal. Then when I am trying to type django-admin myproject page. it is showing this error.
Visual Studio Code 'django-admin' command not recognized
3.5k views Asked by Tech-D At
2
There are 2 answers
1
On
If you're using a virtual environment, do you have it activated?
Is you you python scripts folder in PATH?
On windows: Search for 'Edit the system environment variables'.
Click on 'Environment Variables...'
In System Variables look for row with variable name Path. Click on it and then Edit.
You'll see a number of directories. Do you see one ending with something like
..\Python\Python39\Scripts
?If you have that folder open it and make sure you have django-admin.exe inside.
As you are using conda environment, use
conda activate
to activate the environment, and then you can use the Django module. This error is occurring due to the missing Django module.