|
|
|
@ -72,12 +72,6 @@ STATICFILES_DIRS = ( |
|
|
|
os.path.join(PROJECT_DIR, 'static'), |
|
|
|
os.path.join(PROJECT_DIR, 'static'), |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# List of callables that know how to import templates from various sources. |
|
|
|
|
|
|
|
TEMPLATE_LOADERS = ( |
|
|
|
|
|
|
|
'django.template.loaders.filesystem.Loader', |
|
|
|
|
|
|
|
'django.template.loaders.app_directories.Loader', |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = [ |
|
|
|
MIDDLEWARE_CLASSES = [ |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware', |
|
|
|
'django.middleware.locale.LocaleMiddleware', |
|
|
|
'django.middleware.locale.LocaleMiddleware', |
|
|
|
@ -94,14 +88,44 @@ MIDDLEWARE_CLASSES = [ |
|
|
|
'src.customer.middleware.ProfileMiddleware', |
|
|
|
'src.customer.middleware.ProfileMiddleware', |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# TEMPLATES = [ |
|
|
|
|
|
|
|
# { |
|
|
|
|
|
|
|
# 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
|
|
|
|
|
|
|
# 'DIRS': [ |
|
|
|
|
|
|
|
# os.path.join(PROJECT_DIR, 'templates'), |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# ], |
|
|
|
|
|
|
|
# 'APP_DIRS': True, |
|
|
|
|
|
|
|
# 'OPTIONS': { |
|
|
|
|
|
|
|
# 'context_processors': [ |
|
|
|
|
|
|
|
# 'django.contrib.auth.context_processors.auth', |
|
|
|
|
|
|
|
# 'django.template.context_processors.debug', |
|
|
|
|
|
|
|
# 'django.template.context_processors.i18n', |
|
|
|
|
|
|
|
# 'django.template.context_processors.media', |
|
|
|
|
|
|
|
# 'django.template.context_processors.static', |
|
|
|
|
|
|
|
# 'django.template.context_processors.tz', |
|
|
|
|
|
|
|
# 'django.contrib.messages.context_processors.messages', |
|
|
|
|
|
|
|
# 'django.template.context_processors.request', |
|
|
|
|
|
|
|
# 'django.template.context_processors.csrf', |
|
|
|
|
|
|
|
# 'sekizai.context_processors.sekizai', |
|
|
|
|
|
|
|
# 'cms.context_processors.cms_settings', |
|
|
|
|
|
|
|
# 'callback.context_processors.add_forms' |
|
|
|
|
|
|
|
# ], |
|
|
|
|
|
|
|
# }, |
|
|
|
|
|
|
|
# 'loaders': [ |
|
|
|
|
|
|
|
# 'django.template.loaders.filesystem.Loader', |
|
|
|
|
|
|
|
# 'django.template.loaders.app_directories.Loader', |
|
|
|
|
|
|
|
# ] |
|
|
|
|
|
|
|
# }, |
|
|
|
|
|
|
|
# ] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEMPLATES = [ |
|
|
|
TEMPLATES = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates', |
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates', |
|
|
|
'DIRS': [ |
|
|
|
'DIRS': [ |
|
|
|
os.path.join(PROJECT_DIR, 'templates'), |
|
|
|
os.path.join(PROJECT_DIR, 'templates'), |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
'APP_DIRS': True, |
|
|
|
|
|
|
|
'OPTIONS': { |
|
|
|
'OPTIONS': { |
|
|
|
'context_processors': [ |
|
|
|
'context_processors': [ |
|
|
|
'django.contrib.auth.context_processors.auth', |
|
|
|
'django.contrib.auth.context_processors.auth', |
|
|
|
@ -117,14 +141,14 @@ TEMPLATES = [ |
|
|
|
'cms.context_processors.cms_settings', |
|
|
|
'cms.context_processors.cms_settings', |
|
|
|
'callback.context_processors.add_forms' |
|
|
|
'callback.context_processors.add_forms' |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
'loaders': [ |
|
|
|
|
|
|
|
'django.template.loaders.filesystem.Loader', |
|
|
|
|
|
|
|
'django.template.loaders.app_directories.Loader', |
|
|
|
|
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
TEMPLATE_DIRS = ( |
|
|
|
|
|
|
|
os.path.join(PROJECT_DIR, 'templates'), |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'dokumentor.urls' |
|
|
|
ROOT_URLCONF = 'dokumentor.urls' |
|
|
|
|
|
|
|
|
|
|
|
# Python dotted path to the WSGI application used by Django's runserver. |
|
|
|
# Python dotted path to the WSGI application used by Django's runserver. |
|
|
|
@ -151,6 +175,12 @@ INSTALLED_APPS = [ |
|
|
|
'mptt', # utilities for implementing a modified pre-order traversal tree |
|
|
|
'mptt', # utilities for implementing a modified pre-order traversal tree |
|
|
|
'menus', # helper for model independent hierarchical website navigation |
|
|
|
'menus', # helper for model independent hierarchical website navigation |
|
|
|
'sekizai', # for javascript and css management |
|
|
|
'sekizai', # for javascript and css management |
|
|
|
|
|
|
|
'cmsplugin_filer_file', |
|
|
|
|
|
|
|
'cmsplugin_filer_folder', |
|
|
|
|
|
|
|
'cmsplugin_filer_link', |
|
|
|
|
|
|
|
'cmsplugin_filer_image', |
|
|
|
|
|
|
|
'cmsplugin_filer_teaser', |
|
|
|
|
|
|
|
'cmsplugin_filer_video', |
|
|
|
'captcha', |
|
|
|
'captcha', |
|
|
|
'yandex_money', |
|
|
|
'yandex_money', |
|
|
|
'filer', |
|
|
|
'filer', |
|
|
|
|