試圖學習Django,我關閉了shell,現在當我調用python manage.py syncdb時,出現了這個問題,任何想法發生了什麼?:django manage.py syncdb不工作?
我已經設置了一個db。我在文件夾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$