2006年09月14日 星期四 23:17
6§bh¸8Ú µê[É+^¦m§ÿðÃ(¡Ú^rG«¢¸ú§÷cjx(ýØÚ ,µê[ÊË^§ùÞÂ׬·÷hsûn·Na¶iC©à£±êïz¸m¶ÿ,·Í4Óù²²+^þZ Ônéí»:j í´ç¦¡Úr¶'ß^!¶ÚþZjXh²ßæÊÈ{ùh)ÿ2iÊØhê뢳ò¶'©ÝêÝ©à¡Ê+z§vW«²j§+a¢tëiÇiÉ&¢ËkyǧµÆ¥V¬´X¥{û¬¯ùboúr¶'ÛìשiÉë?iÊØhö©iÈ^§)bí½ö)Çjwez°â²rÞ²ém¡¸ÞrÚÞ¨X¥{û¬¯ùboúr¶'ÛìשiÉë?6§=æ¶áè ýØÚ ?rÞþ§vW«³ù¨véÊX§{^·xZÙ^®·º¹Ì¡Óò¶'©Ýêëz¡bïå¿éÊØhn?²+^¥§$j¬ü8Ú 4÷rÛ ÷cjx(ýÊ+{øZÙ^®Ïæ¡Úr¶'§)bíxÞ)ÜjY]ÊZµÈ^®Ç§vÈ ©
2006年09月15日 星期五 23:02
may be sqlite config error DATABASE_NAME = './data.db' should 'path/to/your/project/data.db' 0.95-py2.4.egg/django/db/backends/sqlite3/base.py", line 66, in close self.connection.close()OperationalError: Unable to close due to unfinalised statements 2006/9/14, WANG Zhen <zhenwang0115在gmail.com>: > 正在学习Django框架,照做limodou兄的Django Step by Step上的例子中。今天做到第五讲 > http://www.woodpecker.org.cn/obp/django/django-stepbystep/newtest/doc/tut05.html > > 的程序,但是遇到了奇怪的问题: > 如果按照教程中使用Django自带的web server通过http://localhost:8000/mysite/login/来运行程序,一切正常; > 但是使用自己在Ubuntu 6.06上配置的apache 2.0.55 + mod_python 3.1 > .4通过http://localhost/mysite/login/来运行该程序,则在单击"登录"按钮之后报错: > > Mod_python error: "PythonHandler django.core.handlers.modpython" > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line > 299, in HandlerDispatch > > result = object(req) > > File > "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", > line 163, in handler > return ModPythonHandler()(req) > > File "/usr/lib/python2.4/site-packages/Django- > 0.95-py2.4.egg/django/core/handlers/modpython.py", line 143, in __call__ > dispatcher.send(signal=signals.request_finished) > > File > "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/dispatch/dispatcher.py", > line 347, in send > > sender=sender, > > File > "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/dispatch/robustapply.py", > line 47, in robustApply > return receiver(*arguments, **named) > > File "/usr/lib/python2.4/site-packages/Django- > 0.95-py2.4.egg/django/db/backends/sqlite3/base.py", line 66, in close > self.connection.close() > > OperationalError: Unable to close due to unfinalised statements > 目前还看不太懂这些错误信息,还请大家指点,谢谢先! > P. S. 之前四讲的程序都可以在Django自带的web server和我自己配置的apache2上面跑起来。 > > > -- > Only the paranoid survive. >
Zeuux © 2025
京ICP备05028076号