csrf and honeypots
[wolnelektury.git] / wolnelektury / settings / __init__.py
1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
3 from os import path
4
5 from settings.basic import *
6 from settings.auth import *
7 from settings.cache import *
8 from settings.celery import *
9 from settings.contrib import *
10 from settings.custom import *
11 from settings.locale import *
12 from settings.static import *
13
14
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',
23     "allauth.context_processors.allauth",
24     "allauth.account.context_processors.account",
25 )
26
27 MIDDLEWARE_CLASSES = [
28     'django.middleware.cache.UpdateCacheMiddleware',
29     'django.middleware.common.CommonMiddleware',
30     'django.contrib.sessions.middleware.SessionMiddleware',
31     'django.middleware.csrf.CsrfViewMiddleware',
32     'django.contrib.auth.middleware.AuthenticationMiddleware',
33     'django.middleware.doc.XViewMiddleware',
34     'pagination.middleware.PaginationMiddleware',
35     'django.middleware.locale.LocaleMiddleware',
36     'piwik.django.middleware.PiwikMiddleware',
37     'maintenancemode.middleware.MaintenanceModeMiddleware',
38     'django.middleware.common.CommonMiddleware',
39     'django.middleware.cache.FetchFromCacheMiddleware',
40     'django.contrib.messages.middleware.MessageMiddleware',
41 ]
42
43 ROOT_URLCONF = 'wolnelektury.urls'
44
45 INSTALLED_APPS = [
46     'wolnelektury_core',
47     # external
48     'django.contrib.auth',
49     'django.contrib.contenttypes',
50     'django.contrib.sessions',
51     'django.contrib.sites',
52     'django.contrib.admin',
53     'django.contrib.admindocs',
54     'pagination',
55     'piston',
56     'piwik.django',
57     #'rosetta',
58     'south',
59     'sorl.thumbnail',
60     'djcelery',
61     'djkombu',
62     'honeypot',
63     #    'django_nose',
64
65     #allauth stuff
66     'emailconfirmation',
67     'uni_form',
68     'allauth',
69     'allauth.account',
70     'allauth.socialaccount',
71     'allauth.openid',
72     #'allauth.facebook',
73     #'allauth.twitter',
74
75     # included
76     'compress',
77     'modeltranslation',
78
79     # our
80     'ajaxable',
81     'api',
82     'catalogue',
83     'chunks',
84     'dictionary',
85     'infopages',
86     'lesmianator',
87     #'lessons',
88     'newtagging',
89     'opds',
90     'pdcounter',
91     'reporting',
92     'sponsors',
93     'stats',
94     'suggest',
95     'picture',
96     'search',
97     'social',
98     'waiter',
99 ]
100
101 # Load localsettings, if they exist
102 try:
103     from localsettings import *
104 except ImportError:
105     pass
106