Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reverted [10346] because it effectively breaks USE_I18N by forcing im…

…port of translation before settings are ready.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b2645a15fdd2143d141072b9a1d2d5ffa27d70d1 1 parent c4f7bf8
Jacob Kaplan-Moss authored April 01, 2009

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  django/core/handlers/base.py
3  django/core/handlers/base.py
@@ -4,7 +4,6 @@
4 4
 from django.core import signals
5 5
 from django.utils.encoding import force_unicode
6 6
 from django.utils.importlib import import_module
7  
-from django.utils.translation import ugettext_lazy as _
8 7
 
9 8
 class BaseHandler(object):
10 9
     # Changes that are always applied to a response (in this order).
@@ -124,7 +123,7 @@ def get_response(self, request):
124 123
                     finally:
125 124
                         receivers = signals.got_request_exception.send(sender=self.__class__, request=request)
126 125
         except exceptions.PermissionDenied:
127  
-            return http.HttpResponseForbidden('<h1>%s</h1>' % _("Permission denied"))
  126
+            return http.HttpResponseForbidden('<h1>Permission denied</h1>')
128 127
         except SystemExit:
129 128
             # Allow sys.exit() to actually exit. See tickets #1023 and #4701
130 129
             raise

0 notes on commit b2645a1

Please sign in to comment.
Something went wrong with that request. Please try again.