diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2006-01-13 10:40:09 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2006-01-13 10:40:09 +0000 |
| commit | 47e79cec0c5ae2eb224282c3add5ce49911f9f3e (patch) | |
| tree | 7d127185596bdc83a5c8e676b74805d1405d7ce6 | |
| parent | a6404e24ecc179b434aba30feb21ef76a5294fff (diff) | |
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
| -rw-r--r-- | django/utils/translation.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |
