From 6bc97349ff72031e940c81db0a7dad1c102286dd Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 20 Jul 2015 15:33:56 -0300 Subject: [PATCH] Setup locales --- sapl/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sapl/settings.py b/sapl/settings.py index dde59ee01..465048fbd 100644 --- a/sapl/settings.py +++ b/sapl/settings.py @@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/1.8/ref/settings/ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os + BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -57,6 +58,7 @@ INSTALLED_APPS = ( MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -108,6 +110,9 @@ USE_I18N = True USE_L10N = True USE_TZ = True +LOCALE_PATHS = ( + 'locale', +) # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.8/howto/static-files/