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 = [
66 'getpaid.backends.payu',
69 INSTALLED_APPS_CONTRIB = [
70 # Should be before django.contrib.admin
74 'django.contrib.auth',
75 'django.contrib.contenttypes',
76 'django.contrib.sessions',
77 'django.contrib.sites',
78 'django.contrib.admin',
79 'django.contrib.admindocs',
80 'django.contrib.staticfiles',
81 'fnp_django_pagination',
86 'kombu.transport.django',
90 'getpaid.backends.payu',
93 'raven.contrib.django.raven_compat',
99 'allauth.socialaccount',
100 'allauth.socialaccount.providers.openid',
101 'allauth.socialaccount.providers.facebook',
102 'allauth.socialaccount.providers.google',
103 # 'allauth.socialaccount.providers.twitter',
106 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
108 # Load localsettings, if they exist
110 from wolnelektury.localsettings import *