我安装完毕后,不能发表新主题,报下列错误:
TemplateSyntaxError at /admin/lbforum/topic/add/
Caught DatabaseError while rendering: no such table: attachments_attachment
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/lbforum/topic/add/
Django Version: 1.3 pre-alpha
Exception Type: TemplateSyntaxError
Exception Value:
Caught DatabaseError while rendering: no such table: attachments_attachment
Exception Location: d:\django\vicalloy-lbforum-a58ebba\vicalloy-lbforum-a58ebba\lbforum_env\lib\site-packages\django-1.3_pre_alpha-py2.5.egg\django\db\backends\sqlite3\base.py in execute, line 200
Python Executable: D:\Python25\python.exe
Python Version: 2.5.4
Python Path:
Server time: 星期四, 5 八月 2010 02:03:10 +0800
我检查了lbforum.sqlite确实没有attachments_attachment
1 2010-08-04 13:20
2 2010-08-04 23:37
You have to run %mg% merge after running %mg% syncdb and that should take care of the problem. When running %mg% syncdb it tells you to run merge when it finishes. But you have to install South, (plus everything else it tells you to in the README). %mg% is just manage.py, but has to be run from within their custom shell created by lbforum_env.bat, which all that does I believe is just set some paths and environment variables. Do exactly what it says in the README, although create_lbforum_env.py may hang, but may be able to get around it by just manually downloading and installing all the required packages. svn may be required too, can't remember. Everything does eventually work though.
3 2010-08-04 23:52
问题已经解决:
在manage.py syncdb后,按提示 执行 manage.py migrate就行了。
谢谢!