Hi! I'd like to know if there is any method to handle 403 errors and display pretty error pages for them.
I need to handle some errors raised by Admin (raised when a user clicks an add symbol but doesn't have the permission to add a new object). In the Admin code I have found add_view function of ModelAdmin which does: if not self.has_add_permission(request): raise PermissionDenied Then there is django.core.handlers.base.py and: (...) except exceptions.PermissionDenied: return http.HttpResponseForbidden('<h1>Permission denied</ h1>') which causes me to receive ugly untranslated "Permission denied" page. Django has a handler for 404 is it possible to write one for 403? One more thing - I use newforms-admin branch. regards -- Jakub Wiśniowski --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---