访问http://127.0.0.1:8000/accounts/login/

ubuntu_mark 2011-07-31 01:08:00
Traceback (most recent call last):

File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 273, in __call__
response = self.get_response(request)

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())

File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
return callback(request, **param_dict)

File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py", line 93, in _wrapped_view
response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python2.6/dist-packages/django/views/defaults.py", line 30, in server_error
t = loader.get_template(template_name) # You need to create a 500.html template.

File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 157, in get_template
template, origin = find_template(template_name)

File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 138, in find_template
raise TemplateDoesNotExist(name)

TemplateDoesNotExist: 500.html
...全文
2872 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
georgema 2011-08-05
  • 打赏
  • 举报
回复
你贴出的不是真正出错的原因。最后一行TemplateDoesNotExist: 500.html说明你的DEBUG设成了False,所以django不会输出更多的出错信息。把DEBUG设成True再找原因
nihello 2011-08-03
  • 打赏
  • 举报
回复
我连接smtp老是出现connection refused...跟socket影响很大啊

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧