Ticket #3955: bugfix-no-locale-paths-in-settings.diff

File bugfix-no-locale-paths-in-settings.diff, 1.1 KB (added by Ilya Semenov, 17 years ago)

A bugfix to a patch by Wang Chun, uses hasattr() instead of try/except

  • django/bin/compile-messages.py

     
    1414    basedirs = [os.path.join('conf', 'locale'), 'locale']
    1515    if os.environ.get('DJANGO_SETTINGS_MODULE'):
    1616        from django.conf import settings
    17         basedirs += settings.LOCALE_PATHS
     17        if hasattr(settings, 'LOCALE_PATHS'):
     18            basedirs += settings.LOCALE_PATHS
    1819
    1920    # Gather existing directories.
    2021    basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))
  • AUTHORS

     
    311311    Vlado <vlado@labath.org>
    312312    Milton Waddams
    313313    wam-djangobug@wamber.net
    314     wangchun <yaohua2000@gmail.com>
     314    Wang Chun <wangchun@exoweb.net>
    315315    Filip Wasilewski <filip.wasilewski@gmail.com>
    316316    Dan Watson <http://theidioteque.net/>
    317317    Chris Wesseling <Chris.Wesseling@cwi.nl>
Back to Top