Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Specify LOCALE_PATHS to remove DeprecationWarning #120

Merged
merged 1 commit into from

2 participants

@rfreebern

Currently, ./manage.py runserver gives the following warning twice:

/home/rfreebern/development/playdoh/vendor/lib/python/django/utils/translation/__init__.py:63: DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.

This patch eliminates that warning.

@kumar303 kumar303 merged commit 9964b67 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 22, 2012
  1. @rfreebern
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  project/settings/base.py
View
3  project/settings/base.py
@@ -19,6 +19,9 @@
'%s.examples' % PROJECT_MODULE,
]
+LOCALE_PATHS = (
+ os.path.join(ROOT, PROJECT_MODULE, 'locale'),
+)
# Because Jinja2 is the default template loader, add any non-Jinja templated
# apps here:
Something went wrong with that request. Please try again.