Minor fixes in picture publishing process.
[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.csrf.CsrfViewMiddleware',
30     'ssify.middleware.SsiMiddleware',
31     'django.middleware.cache.UpdateCacheMiddleware',
32     'ssify.middleware.PrepareForCacheMiddleware',
33     'django.middleware.common.CommonMiddleware',
34     'django.contrib.sessions.middleware.SessionMiddleware',
35     'django.contrib.auth.middleware.AuthenticationMiddleware',
36     'django.contrib.admindocs.middleware.XViewMiddleware',
37     'pagination.middleware.PaginationMiddleware',
38     'ssify.middleware.LocaleMiddleware',
39     'maintenancemode.middleware.MaintenanceModeMiddleware',
40     'django.middleware.common.CommonMiddleware',
41     'django.contrib.messages.middleware.MessageMiddleware',
42     'fnpdjango.middleware.SetRemoteAddrFromXRealIP',
43     'django.middleware.cache.FetchFromCacheMiddleware',
44 ]
45
46 ROOT_URLCONF = 'wolnelektury.urls'
47
48 # These are the ones we should test.
49 INSTALLED_APPS_OUR = [
50     'wolnelektury_core',
51     # our
52     'ajaxable',
53     'api',
54     'catalogue',
55     'chunks',
56     'dictionary',
57     'infopages',
58     'lesmianator',
59     'newtagging',
60     'opds',
61     'pdcounter',
62     'reporting',
63     'sponsors',
64     'stats',
65     'suggest',
66     'picture',
67     'social',
68     'waiter',
69     'search',
70     'oai',
71     'funding',
72     'polls',
73     'libraries',
74     ]
75
76 GETPAID_BACKENDS = (
77     'getpaid.backends.payu',
78 )
79
80 INSTALLED_APPS_CONTRIB = [
81     # Should be before django.contrib.admin
82     'modeltranslation',
83
84     # external
85     'django.contrib.auth',
86     'django.contrib.contenttypes',
87     'django.contrib.sessions',
88     'django.contrib.sites',
89     'django.contrib.admin',
90     'django.contrib.admindocs',
91     'django.contrib.staticfiles',
92     'pagination',
93     'pipeline',
94     'piston',
95     'piwik',
96     'sorl.thumbnail',
97     'kombu.transport.django',
98     'honeypot',
99     'fnpdjango',
100     'getpaid',
101     'getpaid.backends.payu',
102     'ssify',
103
104     #allauth stuff
105     'uni_form',
106     'allauth',
107     'allauth.account',
108     'allauth.socialaccount',
109     'allauth.socialaccount.providers.openid',
110     'allauth.socialaccount.providers.facebook',
111     #'allauth.socialaccount.providers.twitter',
112     ]
113
114 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
115
116 # Load localsettings, if they exist
117 try:
118     from wolnelektury.localsettings import *
119 except ImportError:
120     pass