command "django-admin.py startproject mysite" not recognized
django
Solution
Working !! If you are using window then first of all
create virtual environment
python -m venv venv
Then activate that environment
venv\Scripts\activate
Then install Django in that environment
pip install django
Then create django project named mysite
django-admin startproject mysite
Problem
EDIT: I added the path to django-admin.py to my system path `(C:\Users\me\Downloads\Django-1.5.1\django\bin)` but even after this when I try to run django-admin.py startproject mysite, it asks me to pick a file to open with and even when I pick python.py, it opens in chrome for some reason. I also tried python django-admin.py startproject mysite but it says python: can't open file django-admin.py: [Errno 2] No such file or directory Any idea what is wrong? I added python27 to the system path and when I open up cmd and switch to a directory `(C:\Users\me\djcode)` and then type in django-admin.py startproject mysite it says django-admin.py is not recognized as an internal or external command, operable program or batch file When I try typing the command python django-admin.py startproject mysite, it says python: can't open file django-admin.py: [Errno 2] No such file or directory Any idea why? In the djangobook (http://www.djangobook.com/en/2.0/chapter02.html) it says django-admin.py should be on your system path if you installed Django via its setup.py utility what does this mean? how do I add django-admin.py to my system path? I am not sure where django-admin.py even is.