1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
5 from settings.basic import *
6 from settings.auth import *
7 from settings.cache import *
8 from settings.celery import *
9 from settings.custom import *
10 from settings.locale import *
11 from settings.static import *
14 TEMPLATE_CONTEXT_PROCESSORS = (
15 'django.contrib.auth.context_processors.auth',
16 'django.core.context_processors.debug',
17 'django.core.context_processors.i18n',
18 'django.core.context_processors.media',
19 'django.core.context_processors.request',
20 'wolnelektury_core.context_processors.extra_settings',
21 'search.context_processors.search_form',
22 "allauth.context_processors.allauth",
23 "allauth.account.context_processors.account",
26 MIDDLEWARE_CLASSES = [
27 'django.middleware.cache.UpdateCacheMiddleware',
28 'django.middleware.common.CommonMiddleware',
29 'django.contrib.sessions.middleware.SessionMiddleware',
30 'django.contrib.auth.middleware.AuthenticationMiddleware',
31 'django.middleware.doc.XViewMiddleware',
32 'pagination.middleware.PaginationMiddleware',
33 'django.middleware.locale.LocaleMiddleware',
34 'piwik.django.middleware.PiwikMiddleware',
35 'maintenancemode.middleware.MaintenanceModeMiddleware',
36 'django.middleware.common.CommonMiddleware',
37 'django.middleware.cache.FetchFromCacheMiddleware',
38 'django.contrib.messages.middleware.MessageMiddleware',
41 ROOT_URLCONF = 'wolnelektury.urls'
46 'django.contrib.auth',
47 'django.contrib.contenttypes',
48 'django.contrib.sessions',
49 'django.contrib.sites',
50 'django.contrib.admin',
51 'django.contrib.admindocs',
67 'allauth.socialaccount',
97 # Load localsettings, if they exist
99 from localsettings import *