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 '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 = [
63 'getpaid.backends.payu',
66 INSTALLED_APPS_CONTRIB = [
67 # Should be before django.contrib.admin
71 'django.contrib.auth',
72 'django.contrib.contenttypes',
73 'django.contrib.sessions',
74 'django.contrib.sites',
75 'django.contrib.admin',
76 'django.contrib.admindocs',
77 'django.contrib.staticfiles',
83 'kombu.transport.django',
87 'getpaid.backends.payu',
95 'allauth.socialaccount',
96 'allauth.socialaccount.providers.openid',
97 'allauth.socialaccount.providers.facebook',
98 # 'allauth.socialaccount.providers.twitter',
101 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
103 # Load localsettings, if they exist
105 from wolnelektury.localsettings import *