Changing wording on the "thank you" landing page
[wolnelektury.git] / wolnelektury / settings / __init__.py
1 # -*- coding: utf-8 -*-
2 # Django settings for wolnelektury project.
3 from os import path
4
5 from .basic import *
6 from .auth import *
7 from .cache import *
8 from .celery import *
9 from .contrib import *
10 from .custom import *
11 from .locale import *
12 from .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
24     "allauth.account.context_processors.account",
25     "allauth.socialaccount.context_processors.socialaccount",
26 )
27
28 MIDDLEWARE_CLASSES = [
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.contrib.messages.middleware.MessageMiddleware',
40     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
41 ]
42
43 ROOT_URLCONF = 'wolnelektury.urls'
44
45 # These are the ones we should test.
46 INSTALLED_APPS_OUR = [
47     'wolnelektury_core',
48     # our
49     'ajaxable',
50     'api',
51     'catalogue',
52     'chunks',
53     'dictionary',
54     'infopages',
55     'lesmianator',
56     'newtagging',
57     'opds',
58     'pdcounter',
59     'reporting',
60     'sponsors',
61     'stats',
62     'suggest',
63     'picture',
64     'social',
65     'waiter',
66     'search',
67     'oai',
68     'funding',
69     'polls'
70     ]
71
72 GETPAID_BACKENDS = (
73     'getpaid.backends.payu',
74 )
75
76 INSTALLED_APPS_CONTRIB = [
77     # external
78     'django.contrib.auth',
79     'django.contrib.contenttypes',
80     'django.contrib.sessions',
81     'django.contrib.sites',
82     'django.contrib.admin',
83     'django.contrib.admindocs',
84     'django.contrib.staticfiles',
85     'pagination',
86     'pipeline',
87     'piston',
88     'piwik.django',
89     #'rosetta',
90     'south',
91     'sorl.thumbnail',
92     'djcelery',
93     'djkombu',
94     'honeypot',
95     #'django_nose',
96     'fnpdjango',
97     'getpaid',
98     'getpaid.backends.payu',
99
100     #allauth stuff
101     'uni_form',
102     'allauth',
103     'allauth.account',
104     'allauth.socialaccount',
105     'allauth.socialaccount.providers.openid',
106     'allauth.socialaccount.providers.facebook',
107     #'allauth.socialaccount.providers.twitter',
108
109     # included
110     'modeltranslation',
111     ]
112
113 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
114
115 # Load localsettings, if they exist
116 try:
117     from wolnelektury.localsettings import *
118 except ImportError:
119     pass