본문 바로가기
Language & Library/Python

Can't open file “django-admin.py”: No such file or directory

by 댓츠굿 2017. 8. 20.

  Q.) Can't open file “django-admin.py”: No such file or directory



A.)down voteaccepted

Try running without python

django-admin.py startproject myproject

Explanation: It's because django-admin.py is added in one of the bin folders. Also, pythonexpects a file path.



problem) 윈도에서 python.exe django-admin.py startproject [projectName]  로 했더니 위와 같은 에러 발생.


Solution) django-admin.py startproject [projectName] 로 하니 잘 됨. (파이썬 프로젝트 경로에서 했음. ex.) python_workspace )

             cf.) 그 다음 [projectName] 경로 내에서  python.exe manage.py startapp [appName] 실행.


반응형

'Language & Library > Python' 카테고리의 다른 글

파이썬 MySQL 설치  (0) 2017.09.03
python - UnicodeEncodeError (유니코드 에러)  (0) 2017.09.02