Django Framework / Debugging / 'django-admin' is not recognized as an internal or external command
Django-admin
-
Step
1. Add Python to your user's PATH environment variable
1.Click on the Search bar and type "environment variables".
2.Click on "Edit the system environment variables".
3.Click on the "Environment Variables" button.
4. In the "User variables for YOUR_USER" section, select the "Path" variable and click "Edit".
5. Click on "New" and then click "Browse".
6. You can use one of the following commands to check where your Python installation is located.
output will bepython -c "import os, sys; print(os.path.dirname(sys.executable))" where python C:\Users\YOUR_USER\AppData\Local\Programs\Python\Python310 7. Add the path to Python and then add the path to the Scripts directory that is located in your Python3X folder. This is where the executable files are located.
8. Once the two paths are added, confirm the changes by clicking on the "OK" button twice.