我是Django的新手,並且正在按照有關啓動並運行項目的說明。我所遵循的指示告訴我用django-admin.py startproject
創建一個項目,然後在創建的目錄內導航,並嘗試python manage.py help
以確保一切正常運行。但是,運行該命令溢出此錯誤:Django manage.py返回AttributeError
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/var/lib/python-support/python2.5/django/core/management.py", line 1522, in execute_from_command_line
parser = DjangoOptionParser(usage=get_usage(action_mapping), version=get_version())
File "/var/lib/python-support/python2.5/django/core/management.py", line 1503, in get_usage
available_actions = action_mapping.keys()
AttributeError: 'list' object has no attribute 'keys'
有人可以告訴我發生了什麼事嗎?謝謝。這來自Ubuntu回購站的全新django安裝。