我試圖運行python manage.py runserver
但我收到以下錯誤。你知道我該如何修復它嗎?django - __init __()關鍵字必須是字符串
[email protected]:/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代碼? – Pixou
你正在運行django 1.5嗎? – karthikr
你使用的是什麼版本的python? –