2006年01月14日 星期六 22:30
安装时一直未配置python环境变量 程序也一直放scripts目录下运行 今日得limodou兄指点将tools/scripts目录 lib目录设置环境变量 然后将django一步一步学习中的newtest包移动到了python24根目录下. 但此时在运行一步一步学习django中的一些例子时就出现了问题 helloworld能运行 加法(add)能运行 但http://127.0.0.1:8000/login/ http://127.0.0.1:8000/wiki/ 都不能运行了.. 报错是(login的): OperationalError at /login/ no such table: core_sessions Request Method:GET Request URL:http://127.0.0.1:8000/login/ Exception Type:OperationalError Exception Value:no such table: core_sessions Exception Location:c:\python24\lib\site-packages\django-0.90-py2.4.egg\django\core\db\backends\sqlite3.py in execute, line 71 Traceback (innermost last) c:\python24\lib\site-packages\django-0.90-py2.4.egg\django\core\handlers\base.py in get_response # Apply view middleware for middleware_method in self._view_middleware: response = middleware_method(request, callback, callback_args, callback_kwargs) if response: return response try: response = callback(request, *callback_args, **callback_kwargs) ... except Exception, e: # If the view raised an exception, run it through exception # middleware, and if the exception middleware returns a # response, use that. Otherwise, reraise the exception. for middleware_method in self._exception_middleware: response = middleware_method(request, e) Wiki的报错为: Request Method: GET Request URL: http://127.0.0.1:8000/wiki/ Exception Type: OperationalError Exception Value: no such table: wiki_wikis Exception Location: c:\python24\lib\site-packages\django-0.90-py2.4.egg\django\core\db\backends\sqlite3.py in execute, line 71 还请指教
Zeuux © 2025
京ICP备05028076号