File: settings.py

package info (click to toggle)
python-enmerkar 0.7.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 644; makefile: 167; sh: 9
file content (29 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import pkg_resources

SECRET_KEY = 'x'
USE_I18N = True
ROOT_URLCONF = 'testproject.urls'
INSTALLED_APPS = [
    'enmerkar',
    'testproject',
]
MIDDLEWARE = [
    'django.middleware.locale.LocaleMiddleware',
    'enmerkar.middleware.LocaleMiddleware',
]
MIDDLEWARE_CLASSES = MIDDLEWARE  # backwards compat
TEMPLATES = [
    {
        'NAME': 'default',
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.i18n',
            ],
        },
    },
]
LOCALE_PATHS = [
    pkg_resources.resource_filename(__name__, 'locale'),
]