Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3955 -- Handled the case when there is no LOCALE_PATHS setting…

… from [6349]. Thanks, Wang Chun and semenov.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 291b81b4e3b869928b1b65dd892542b0ef3c7510 1 parent fa546d7
Malcolm Tredinnick authored October 03, 2007
2  AUTHORS
@@ -313,7 +313,7 @@ answer newbie questions, and generally made Django that much better:
313 313
     Vlado <vlado@labath.org>
314 314
     Milton Waddams
315 315
     wam-djangobug@wamber.net
316  
-    wangchun <yaohua2000@gmail.com>
  316
+    Wang Chun <wangchun@exoweb.net>
317 317
     Filip Wasilewski <filip.wasilewski@gmail.com>
318 318
     Dan Watson <http://theidioteque.net/>
319 319
     Chris Wesseling <Chris.Wesseling@cwi.nl>
3  django/bin/compile-messages.py
@@ -14,7 +14,8 @@ def compile_messages(locale=None):
14 14
     basedirs = [os.path.join('conf', 'locale'), 'locale']
15 15
     if os.environ.get('DJANGO_SETTINGS_MODULE'):
16 16
         from django.conf import settings
17  
-        basedirs += settings.LOCALE_PATHS
  17
+        if hasattr(settings, 'LOCALE_PATHS'):
  18
+            basedirs += settings.LOCALE_PATHS
18 19
 
19 20
     # Gather existing directories.
20 21
     basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))

0 notes on commit 291b81b

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