Reputation:
I want start a new django project, I use windows 10. If I write to console
python -c "import django; print(django.get_version())"
return
1.10.3
but if I write
django-admin.py startproject mysite
it opens
...\appdata\local\programs\python\python35-32\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
and I have path in Environmental Variable: Programs\Python\Python35-32\
How I can do it?
Upvotes: 0
Views: 993
Reputation: 2984
django-admin is a command defined in django. you should call.
django-admin startproject mysite
Upvotes: 5