From b2645a15fdd2143d141072b9a1d2d5ffa27d70d1 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 1 Apr 2009 21:58:38 +0000 Subject: [PATCH] Reverted [10346] because it effectively breaks USE_I18N by forcing import of translation before settings are ready. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10347 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/handlers/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 5cd78a19f7..e6ef6e2f9e 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -4,7 +4,6 @@ from django import http from django.core import signals from django.utils.encoding import force_unicode from django.utils.importlib import import_module -from django.utils.translation import ugettext_lazy as _ class BaseHandler(object): # Changes that are always applied to a response (in this order). @@ -124,7 +123,7 @@ class BaseHandler(object): finally: receivers = signals.got_request_exception.send(sender=self.__class__, request=request) except exceptions.PermissionDenied: - return http.HttpResponseForbidden('

%s

' % _("Permission denied")) + return http.HttpResponseForbidden('

Permission denied

') except SystemExit: # Allow sys.exit() to actually exit. See tickets #1023 and #4701 raise