Yesterday I installed Python and added it to PATH. Then I created a virtual environment using virtualenv
.
I then activated the environment and pip-installed django (using pip install django
) and started a project by django-admin startproject project_name
.
Then I moved the virtual environment folder inside the project directory (formerly it was its sibling dirctory).
I worked with the project and everything was fine until today when I opened it again. python manage.py runserver
still does good but when I use django-admin
commands it gives the error in the question title. It’s not recognized but yesterday it was when I started the project.
The only difference from yesterday is that I upgraded pip.
I looked up stackoverflow and it had plenty of questions for my problem but most of them had problem with PATH (which I had configured correctly and didn’t have a problem with) or they had used django
instead of django-admin
or they were on Linux and had problems with sudo
(but I’m on Windows 10).
What can I do to solve this?