尝试学习 Django,我关闭了 shell,现在当我调用 python manage.py syncdb 时遇到了这个问题,知道发生了什么吗?:
我已经建立了一个数据库。我在文件夹 django_bookmarks 中设置了 manage.py。这是怎么回事?
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: No module named django.core.management
my-computer:~/Django-1.1.1/django_bookmarks mycomp$ export PATH=/Users/mycomp/bin:$PATH
my-computer:~/Django-1.1.1/django_bookmarks mycomp$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: No module named django.core.management
my-computer:~/Django-1.1.1/django_bookmarks mycomp$