1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
14 MIDDLEWARE_CLASSES = [
15 'django.middleware.csrf.CsrfViewMiddleware',
16 'ssify.middleware.SsiMiddleware',
17 'django.middleware.cache.UpdateCacheMiddleware',
18 'ssify.middleware.PrepareForCacheMiddleware',
19 'django.middleware.common.CommonMiddleware',
20 'django.contrib.sessions.middleware.SessionMiddleware',
21 'django.contrib.auth.middleware.AuthenticationMiddleware',
22 'django.contrib.admindocs.middleware.XViewMiddleware',
23 'fnp_django_pagination.middleware.PaginationMiddleware',
24 'ssify.middleware.LocaleMiddleware',
25 'maintenancemode.middleware.MaintenanceModeMiddleware',
26 'django.middleware.common.CommonMiddleware',
27 'django.contrib.messages.middleware.MessageMiddleware',
28 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
29 'django.middleware.cache.FetchFromCacheMiddleware',
32 ROOT_URLCONF = 'wolnelektury.urls'
34 # These are the ones we should test.
35 INSTALLED_APPS_OUR = [
64 'getpaid.backends.payu',
67 INSTALLED_APPS_CONTRIB = [
68 # Should be before django.contrib.admin
72 'django.contrib.auth',
73 'django.contrib.contenttypes',
74 'django.contrib.sessions',
75 'django.contrib.sites',
76 'django.contrib.admin',
77 'django.contrib.admindocs',
78 'django.contrib.staticfiles',
79 'fnp_django_pagination',
84 'kombu.transport.django',
88 'getpaid.backends.payu',
91 'raven.contrib.django.raven_compat',
97 'allauth.socialaccount',
98 'allauth.socialaccount.providers.openid',
99 'allauth.socialaccount.providers.facebook',
100 # 'allauth.socialaccount.providers.twitter',
103 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
105 # Load localsettings, if they exist
107 from wolnelektury.localsettings import *