Kaydet (Commit) 47e79cec authored tarafından Georg Bauer's avatar Georg Bauer

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

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
üst a6404e24
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment