我是 Django 的新手,我正在按照有关启动和运行项目的说明进行操作。我遵循的说明告诉我创建一个项目,django-admin.py startproject
然后在创建的目录中导航,并尝试python manage.py help
确保一切正常运行。但是,运行该命令会溢出此错误:
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。