On Mar 14, 12:30 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Fri, 2009-03-13 at 21:27 -0700, Flank wrote:
> > in order to use django/conf/urls/defaults.py, handler404, i did 2
> > things:
> > 1:change DEBUG = False in settings.py
> > 2:create a 404.html template in the root of the template directory
>
> > when i request a page that won't find ,such
> > ashttp://localhost/page_don_exist.html.a
> > http 500 error is reported,
>
expected:404 error
but a 500 error returned
INFO 2009-04-05 10:44:55,687 mail_stub.py]
MailService.SendToAdmins
INFO 2009-04-05 10:44:55,687 mail_stub.py] From: r...@localhost
INFO 2009-04-05 10:44:55,687 mail_stub.py] Subject: [Django]
Error (EXTER
AL IP): /dud8djdd7udududdu
INFO 2009-04-05 10:44:55,687 mail_stub.py] Body:
INFO 2009-04-05 10:44:55,687 mail_stub.py] Content-type: text/
plain
INFO 2009-04-05 10:44:55,687 mail_stub.py] Data length: 2080
ERROR 2009-04-05 10:44:55,687 main.py] Exception in request:
ImportError: No
module named auth.models
Traceback (most recent call last):
File "D:\workspace\coonay\django\core\handlers\base.py", line 113,
in get_res
onse
return callback(request, **param_dict)
File "D:\python\coonay\src\django\views\defaults.py", line 79, in
page_not_fo
nd
return http.HttpResponseNotFound(t.render(RequestContext(request,
{'request
path': request.path})))
File "D:\workspace\coonay\django\template\context.py", line 105, in
__init__
self.update(processor(request))
File "D:\python\coonay\src\django\core\context_processors.py", line
23, in au
h
from django.contrib.auth.models import AnonymousUser
ImportError: No module named auth.models
INFO 2009-04-05 10:44:55,703 dev_appserver.py] "GET /
dud8djdd7udududdu HTTP
1.1" 500 -
> What does the traceback say? It will provide the clues as to what is
> going wrong.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---