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_core.context_processors.extra_settings',
22 'search.context_processors.search_form',
24 "allauth.account.context_processors.account",
25 "allauth.socialaccount.context_processors.socialaccount",
28 MIDDLEWARE_CLASSES = [
29 'django.middleware.cache.UpdateCacheMiddleware',
30 'django.middleware.common.CommonMiddleware',
31 'django.contrib.sessions.middleware.SessionMiddleware',
32 'django.middleware.csrf.CsrfViewMiddleware',
33 'django.contrib.auth.middleware.AuthenticationMiddleware',
34 'django.middleware.doc.XViewMiddleware',
35 'pagination.middleware.PaginationMiddleware',
36 'django.middleware.locale.LocaleMiddleware',
37 'piwik.django.middleware.PiwikMiddleware',
38 'maintenancemode.middleware.MaintenanceModeMiddleware',
39 'django.middleware.common.CommonMiddleware',
40 'django.middleware.cache.FetchFromCacheMiddleware',
41 'django.contrib.messages.middleware.MessageMiddleware',
42 'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
45 ROOT_URLCONF = 'wolnelektury.urls'
47 # These are the ones we should test.
48 INSTALLED_APPS_OUR = [
73 INSTALLED_APPS_CONTRIB = [
75 'django.contrib.auth',
76 'django.contrib.contenttypes',
77 'django.contrib.sessions',
78 'django.contrib.sites',
79 'django.contrib.admin',
80 'django.contrib.admindocs',
81 'django.contrib.staticfiles',
98 'allauth.socialaccount',
99 'allauth.socialaccount.providers.openid',
100 'allauth.socialaccount.providers.facebook',
101 #'allauth.socialaccount.providers.twitter',
107 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
109 # Load localsettings, if they exist
111 from wolnelektury.localsettings import *