Issue
Environment:
Windows 7
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32
Django==1.7.5
Whenever I try to create a new project:
python .\Scripts\django-admin.py startproject new_project,
I get this error:
python: can't open file 'django-admin.py': [Errno 2] No such file or directory
Where am I going wrong? Thank you all in advance.
Solution
If you have the system environment variables set up right (All the three below):
C:\Python34;
C:\Python34\Scripts;
C:\Python34\Lib\site-packages\django\bin
then,
python .\Scripts\django-admin.py startproject new_project,
gives error:
python: can't open file 'django-admin.py': [Errno 2] No such file or directory
since the command is system internally unrecognisable.
Instead, do:
django-admin startproject new_project
Note django-admin
without .py
extension
Read more at Writing your first Django app, part 1¶
Answered By - Program-Me-Rev
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.