1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
15 TEMPLATE_CONTEXT_PROCESSORS = (
16 'django.contrib.auth.context_processors.auth',
17 'django.core.context_processors.debug',
18 'django.core.context_processors.i18n',
19 'django.core.context_processors.media',
20 'django.core.context_processors.request',
21 'wolnelektury.context_processors.extra_settings',
22 'search.context_processors.search_form',
25 MIDDLEWARE_CLASSES = [
26 'django.middleware.csrf.CsrfViewMiddleware',
27 'ssify.middleware.SsiMiddleware',
28 'django.middleware.cache.UpdateCacheMiddleware',
29 'ssify.middleware.PrepareForCacheMiddleware',
30 'django.middleware.common.CommonMiddleware',
31 'django.contrib.sessions.middleware.SessionMiddleware',
32 'django.contrib.auth.middleware.AuthenticationMiddleware',
33 'django.contrib.admindocs.middleware.XViewMiddleware',
34 'pagination.middleware.PaginationMiddleware',
35 'ssify.middleware.LocaleMiddleware',
36 'maintenancemode.middleware.MaintenanceModeMiddleware',
37 'django.middleware.common.CommonMiddleware',
38 'django.contrib.messages.middleware.MessageMiddleware',
39 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
40 'django.middleware.cache.FetchFromCacheMiddleware',
43 ROOT_URLCONF = 'wolnelektury.urls'
45 # These are the ones we should test.
46 INSTALLED_APPS_OUR = [
74 'getpaid.backends.payu',
77 INSTALLED_APPS_CONTRIB = [
78 # Should be before django.contrib.admin
82 'django.contrib.auth',
83 'django.contrib.contenttypes',
84 'django.contrib.sessions',
85 'django.contrib.sites',
86 'django.contrib.admin',
87 'django.contrib.admindocs',
88 'django.contrib.staticfiles',
94 'kombu.transport.django',
98 'getpaid.backends.payu',
106 'allauth.socialaccount',
107 'allauth.socialaccount.providers.openid',
108 'allauth.socialaccount.providers.facebook',
109 #'allauth.socialaccount.providers.twitter',
112 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
114 # Load localsettings, if they exist
116 from wolnelektury.localsettings import *