Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
411 views
in Technique[技术] by (71.8m points)

django-admin.py startproject doesn't work, why? FIXED

The command django-admin.py startproject mysite doesn't work.

Also for more information, here is a screenshot of what happens: http://i.imgur.com/xqsy4ZY.png.

I also tried this using full path to django: C:Python27Scriptsdjango-admin.py startproject mysite.

Neither of these commands create anything.


FIXED: Here is the answer: django-admin.py is not working

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

himmip try django-admin.py startproject mysite in a directory where you want your project.

Plus, make sure you have Django installed by calling python -c "import django; print(django.get_version())" from the command line. It should print out django's version if its correctly installed.

Just like in the docs.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...