Exemple #1
0
# Defines the views served for root URLs.
ROOT_URLCONF = '%s.urls' % PROJECT_MODULE

INSTALLED_APPS = list(get_apps([])) + [
    'django.contrib.admin',

    # Application base, containing global templates.
    'jstestnet.base',

    # Local apps
    'jstestnet.system',
    'jstestnet.work',
]

MIDDLEWARE_CLASSES = get_middleware([
    'funfactory.middleware.LocaleURLMiddleware',
])


# Because Jinja2 is the default template loader, add any non-Jinja templated
# apps here:
JINGO_EXCLUDE_APPS = [
    'admin',
    'registration',
]

# Tells the extract script what files to look for L10n in and what function
# handles the extraction. The Tower library expects this.
DOMAIN_METHODS['messages'] = [
    ('%s/**.py' % PROJECT_MODULE,
        'tower.management.commands.extract.extract_tower_python'),
Exemple #2
0
# Defines the views served for root URLs.
ROOT_URLCONF = '%s.urls' % PROJECT_MODULE

INSTALLED_APPS = list(get_apps([])) + [
    'django.contrib.admin',

    # Application base, containing global templates.
    'jstestnet.base',

    # Local apps
    'jstestnet.system',
    'jstestnet.work',
]

MIDDLEWARE_CLASSES = get_middleware([
    'funfactory.middleware.LocaleURLMiddleware',
])

# Because Jinja2 is the default template loader, add any non-Jinja templated
# apps here:
JINGO_EXCLUDE_APPS = [
    'admin',
    'registration',
]

# Tells the extract script what files to look for L10n in and what function
# handles the extraction. The Tower library expects this.
DOMAIN_METHODS['messages'] = [
    ('%s/**.py' % PROJECT_MODULE,
     'tower.management.commands.extract.extract_tower_python'),
    ('%s/**/templates/**.html' % PROJECT_MODULE,