开发者

Help with Django Installation

I'm trying to create my first project by typing in THEFULLPATH\django-admin.py startproject mysite but its not working. No 'mysite' directory created in my current 开发者_如何学运维directory. Instead it gives me a list of commands that is available with django-admin.py. See the below screenshot for more details.

Help with Django Installation


You need to specifically run the script with python, so:

python django-admin.py startproject

I'm not sure why it behaves like this, and it sure is annoying..


The problem (as your other question states), is documented here. You need to unset the environment variable DJANGO_SETTINGS_MODULE.

You can do this by typing:

set DJANGO_SETTINGS_MODULE=

at a DOS command prompt.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜