Django 1.5b1: executing django-admin.py causes “No module named settings” error

后端 未结 5 1496
离开以前
离开以前 2021-02-07 08:25

I\'ve recently installed Django-1.5b1. My system configuration:

  • OSX 10.8
  • Python 2.7.1
  • Virtualenv 1.7.2

When I call django-

5条回答
  •  旧巷少年郎
    2021-02-07 08:45

    Don't run the script from the direct path to the django library; run it from any other path. It seems you cd into the directory where django is installed (or where you downloaded and expanded it) and then ran the command from there.

    So try this:

    (devel)ninja Django-1.5b1: cd 
    (devel)ninja: django-admin.py startproject foo
    

提交回复
热议问题