1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
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.context_processors.extra_settings',
21 'search.context_processors.search_form',
24 MIDDLEWARE_CLASSES = [
25 'django.middleware.csrf.CsrfViewMiddleware',
26 'ssify.middleware.SsiMiddleware',
27 'django.middleware.cache.UpdateCacheMiddleware',
28 'ssify.middleware.PrepareForCacheMiddleware',
29 'django.middleware.common.CommonMiddleware',
30 'django.contrib.sessions.middleware.SessionMiddleware',
31 'django.contrib.auth.middleware.AuthenticationMiddleware',
32 'django.contrib.admindocs.middleware.XViewMiddleware',
33 'pagination.middleware.PaginationMiddleware',
34 'ssify.middleware.LocaleMiddleware',
35 'maintenancemode.middleware.MaintenanceModeMiddleware',
36 'django.middleware.common.CommonMiddleware',
37 'django.contrib.messages.middleware.MessageMiddleware',
38 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
39 'django.middleware.cache.FetchFromCacheMiddleware',
42 ROOT_URLCONF = 'wolnelektury.urls'
44 # These are the ones we should test.
45 INSTALLED_APPS_OUR = [
73 'getpaid.backends.payu',
76 INSTALLED_APPS_CONTRIB = [
77 # Should be before django.contrib.admin
81 'django.contrib.auth',
82 'django.contrib.contenttypes',
83 'django.contrib.sessions',
84 'django.contrib.sites',
85 'django.contrib.admin',
86 'django.contrib.admindocs',
87 'django.contrib.staticfiles',
93 'kombu.transport.django',
97 'getpaid.backends.payu',
105 'allauth.socialaccount',
106 'allauth.socialaccount.providers.openid',
107 'allauth.socialaccount.providers.facebook',
108 # 'allauth.socialaccount.providers.twitter',
111 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
113 # Load localsettings, if they exist
115 from wolnelektury.localsettings import *