Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored January 13, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/utils/translation.py
2  django/utils/translation.py
@@ -117,7 +117,7 @@ def translation(language):
117 117
 
118 118
     globalpath = os.path.join(os.path.dirname(settings.__file__), 'locale')
119 119
 
120  
-    parts = os.environ['DJANGO_SETTINGS_MODULE'].split('.')
  120
+    parts = settings.SETTINGS_MODULE.split('.')
121 121
     project = __import__(parts[0], {}, {}, [])
122 122
     projectpath = os.path.join(os.path.dirname(project.__file__), 'locale')
123 123
 

0 notes on commit 47e79ce

Please sign in to comment.
Something went wrong with that request. Please try again.