0

After migrating project from Django 1.4 to 1.6 I've started to see a problem in the console:

/usr/lib/python2.6/dist-packages/django/utils/translation/__init__.py:63: DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.

The message is of course pretty self-explanatory, but still would appreciate if someone can specify what has to be done to fix this.

0leg
  • 13,464
  • 16
  • 70
  • 94

2 Answers2

1

To fix this, you have to define a LOCALE_PATHS tuple/list in your settings, as follows:

LOCALE_PATHS = ('/path/to/a/locale/directory/',)  # the tuple can of course stay empty

As often, you just have to read the docs: LOCALE_PATHS

Steve K
  • 10,879
  • 4
  • 39
  • 39
  • Thank you for help Steve. I am new to Django - both your answer and link are most valuable for me at this point. – 0leg Aug 13 '14 at 09:55
1

This link explains how Django performs the lookup for LOCALE files.

Forge
  • 6,538
  • 6
  • 44
  • 64