On Mar 15, 8:21 am, Fergus <fergus.ferr...@gmail.com> wrote:
> On 14 Mar, 04:30, 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,
>

Yes ,i cann't see the debug on screen, but in the console
> As you've got DEBUG off, you won't see the traceback on screen. You

the expected error should be page-not-found error/404,not 500 error,
a 500 eroor will trig django send a mail to the admin,
> need to make sure you've set ADMINS correctly, as in this case you
> normally get sent an email detailing what went wrong - as you'd see on-
> screen if DEBUG were True.
> <http://docs.djangoproject.com/en/dev/howto/error-reporting/>
>
> You might also want to check Django can send email successfully. There
> are a few settings you might need to tweak.
> <http://docs.djangoproject.com/en/dev/ref/settings/>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to