can't create django project using Windows command prompt
I don't think Windows supports the shebang line. Try invoking it with python django-admin.py ...
I'm using python 2.7 , django 1.7 in windows7.
WAY-1:
1) Go to C:\Python27\Scripts
(or your installation directory)
2) open cmd
and enter python django-admin-script.py startproject ProjectName
3)Your project folder with all necessary files ll be created there.
The problem is in windows, django-admin.py
is supplied as django-admin-script.py
WAY2:
1)Open cmd
at any location you want.
2)enter django-admin startproject ProjectName
3)Your project folder with all necessary files ll be created there.
Its because the .exe file is supplied.
This often happens in Windows.
- Open cmd at any location you want.
- enter
django-admin startproject ProjectName
(don't add the .py extension to the admin) - Your project folder with all necessary files will be created there.
This is because the .exe file is supplied inside the directory.