Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixes #1214 - django.utils.translation doesn't look at DJANGO_SETTING…

…S_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
  • Loading branch information...
commit 47e79cec0c5ae2eb224282c3add5ce49911f9f3e 1 parent a6404e2
Georg Bauer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/translation.py
View
2  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')
Please sign in to comment.
Something went wrong with that request. Please try again.