I have a number of pages which can potentially raise the
self.model.DoesNotExist exception. Whenever this exception is raised,
it maps to a HTTP 404 for me. (That object does not exist in the
database, so I cant show this, so I want to return a 404 exception).
So apart from manually adding try-except to all my views, how can I
return a 404 response on the self.model.DoesNotExist.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to