Vladikio wrote:

>  I know errors 500 and 404 automatically use 404.html and 500.html ...
>but is there a way to define a view that handles those errors ?
>
Yes. 
http://www.djangoproject.com/documentation/tutorial3/#write-a-404-page-not-found-view

> For instance to send an email each time a 500 error happens ?
>  
>
In fact Django already does this by default when you set DEBUG = False 
in your settings. It sends email to people listed in ADMINS setting.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to