From 47e79cec0c5ae2eb224282c3add5ce49911f9f3e Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Fri, 13 Jan 2006 10:40:09 +0000 Subject: [PATCH] fixes #1214 - django.utils.translation doesn't look at DJANGO_SETTINGS_MODULE anymore, but now uses settings.SETTINGS_MODULE instead to construct the project path. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1941 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/translation.py b/django/utils/translation.py index 9c36850fb9..dda8c5d7b6 100644 --- a/django/utils/translation.py +++ b/django/utils/translation.py @@ -117,7 +117,7 @@ def translation(language): globalpath = os.path.join(os.path.dirname(settings.__file__), 'locale') - parts = os.environ['DJANGO_SETTINGS_MODULE'].split('.') + parts = settings.SETTINGS_MODULE.split('.') project = __import__(parts[0], {}, {}, []) projectpath = os.path.join(os.path.dirname(project.__file__), 'locale')