【发布时间】:2013-08-22 21:18:43
【问题描述】:
我试图运行python manage.py runserver,但收到以下错误。你知道我该如何解决吗?
jalal@mona:/research/jalal/django/djcode/mysite$ python manage.py runserver
Validating models...
Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x13f8ed0>>
Traceback (most recent call last):
File "/home/jalal/.pythonbrew/pythons/Python-2.6/lib/python2.6/site-packages/django/core/management/commands/runserver.py", line 92, in inner_run
__init__() keywords must be strings
如何解决这个问题?
谢谢。
【问题讨论】:
-
您的模型似乎存在问题。你能给出你的models.py代码吗?
-
你在运行 django 1.5 吗?
-
你用的是什么版本的python?
-
我正在使用 django 1.5 和 Python 2.6。我正在尝试像以前一样使用 pythonbrew 切换到 Python 2.7,但它说没有安装 python2.7。此外,当我使用 sudo apt-get install 安装 python2.7 并使用 which python 它显示 2.6 @MichaelVayvala
-
这里是 mysite 文件夹中的 manage.py 代码但是我没有修改任何东西 paste.ofcode.org/37LERTC2csTGBNyCJM42iLk@Pixou
标签: python django web-developer-toolbar