1import pkg_resources 2 3SECRET_KEY = 'x' 4USE_I18N = True 5ROOT_URLCONF = 'testproject.urls' 6INSTALLED_APPS = [ 7 'enmerkar', 8 'testproject', 9] 10MIDDLEWARE = [ 11 'django.middleware.locale.LocaleMiddleware', 12 'enmerkar.middleware.LocaleMiddleware', 13] 14MIDDLEWARE_CLASSES = MIDDLEWARE # backwards compat 15TEMPLATES = [ 16 { 17 'NAME': 'default', 18 'BACKEND': 'django.template.backends.django.DjangoTemplates', 19 'APP_DIRS': True, 20 'OPTIONS': { 21 'context_processors': [ 22 'django.template.context_processors.i18n', 23 ], 24 }, 25 }, 26] 27LOCALE_PATHS = [ 28 pkg_resources.resource_filename(__name__, 'locale'), 29] 30