spam filter for publishing suggestions
[wolnelektury.git] / src / wolnelektury / settings / __init__.py
1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
3 from .basic import *
4 from .auth import *
5 from .cache import *
6 from .celery import *
7 from .contrib import *
8 from .custom import *
9 from .locale import *
10 from .static import *
11 from .paths import *
12
13
14 TEMPLATE_CONTEXT_PROCESSORS = (
15     'django.contrib.auth.context_processors.auth',
16     'django.core.context_processors.debug',
17     'django.core.context_processors.i18n',
18     'django.core.context_processors.media',
19     'django.core.context_processors.request',
20     'wolnelektury.context_processors.extra_settings',
21     'search.context_processors.search_form',
22 )
23
24 MIDDLEWARE_CLASSES = [
25     'django.middleware.csrf.CsrfViewMiddleware',
26     'ssify.middleware.SsiMiddleware',
27     'django.middleware.cache.UpdateCacheMiddleware',
28     'ssify.middleware.PrepareForCacheMiddleware',
29     'django.middleware.common.CommonMiddleware',
30     'django.contrib.sessions.middleware.SessionMiddleware',
31     'django.contrib.auth.middleware.AuthenticationMiddleware',
32     'django.contrib.admindocs.middleware.XViewMiddleware',
33     'pagination.middleware.PaginationMiddleware',
34     'ssify.middleware.LocaleMiddleware',
35     'maintenancemode.middleware.MaintenanceModeMiddleware',
36     'django.middleware.common.CommonMiddleware',
37     'django.contrib.messages.middleware.MessageMiddleware',
38     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
39     'django.middleware.cache.FetchFromCacheMiddleware',
40 ]
41
42 ROOT_URLCONF = 'wolnelektury.urls'
43
44 # These are the ones we should test.
45 INSTALLED_APPS_OUR = [
46     'wolnelektury',
47     # our
48     'ajaxable',
49     'api',
50     'catalogue',
51     'chunks',
52     'dictionary',
53     'infopages',
54     'lesmianator',
55     'newtagging',
56     'opds',
57     'pdcounter',
58     'reporting',
59     'sponsors',
60     'stats',
61     'suggest',
62     'picture',
63     'social',
64     'waiter',
65     'search',
66     'oai',
67     'funding',
68     'polls',
69     'libraries',
70     ]
71
72 GETPAID_BACKENDS = (
73     'getpaid.backends.payu',
74 )
75
76 INSTALLED_APPS_CONTRIB = [
77     # Should be before django.contrib.admin
78     'modeltranslation',
79
80     # external
81     'django.contrib.auth',
82     'django.contrib.contenttypes',
83     'django.contrib.sessions',
84     'django.contrib.sites',
85     'django.contrib.admin',
86     'django.contrib.admindocs',
87     'django.contrib.staticfiles',
88     'pagination',
89     'pipeline',
90     'piston',
91     'piwik',
92     'sorl.thumbnail',
93     'kombu.transport.django',
94     'honeypot',
95     'fnpdjango',
96     'getpaid',
97     'getpaid.backends.payu',
98     'ssify',
99     'django_extensions',
100
101     # allauth stuff
102     'uni_form',
103     'allauth',
104     'allauth.account',
105     'allauth.socialaccount',
106     'allauth.socialaccount.providers.openid',
107     'allauth.socialaccount.providers.facebook',
108     # 'allauth.socialaccount.providers.twitter',
109     ]
110
111 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
112
113 # Load localsettings, if they exist
114 try:
115     from wolnelektury.localsettings import *
116 except ImportError:
117     pass