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
This commit is contained in:
Georg Bauer 2006-01-13 10:40:09 +00:00
parent a6404e24ec
commit 47e79cec0c
1 changed files with 1 additions and 1 deletions

View File

@ -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')