#9847: hardcoded string in core/handlers/base.py -------------------------------------+-------------------------------------- Reporter: drakkan | Owner: Status: new | Milestone: 1.2 Component: Core framework | Version: 1.0 Resolution: | Keywords: Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------+-------------------------------------- Comment (by ubernostrum):
I think there should be content in the response, since otherwise you'd show a completely blank page to an end user, requiring them to know about HTTP status codes and how to find out what status code we sent back. I can see a couple options for doing this: 1. Don't bother trying to translate the response content, and just use the language in the HTTP spec (so just "403 Forbidden"). 2. Set a default `content` value for `HttpResponseForbidden`, and mark it for translation. I think we can do that safely since it's over in `django.http` and settings will already be set up by the time it gets imported. -- Ticket URL: <http://code.djangoproject.com/ticket/9847#comment:9> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.