missing import
[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 # 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     ]
69
70 INSTALLED_APPS_CONTRIB = [
71     # external
72     'django.contrib.auth',
73     'django.contrib.contenttypes',
74     'django.contrib.sessions',
75     'django.contrib.sites',
76     'django.contrib.admin',
77     'django.contrib.admindocs',
78     'django.contrib.staticfiles',
79     'pagination',
80     'pipeline',
81     'piston',
82     'piwik.django',
83     #'rosetta',
84     'south',
85     'sorl.thumbnail',
86     'djcelery',
87     'djkombu',
88     'honeypot',
89     #'django_nose',
90
91     #allauth stuff
92     'emailconfirmation',
93     'uni_form',
94     'allauth',
95     'allauth.account',
96     'allauth.socialaccount',
97     'allauth.openid',
98     #'allauth.facebook',
99     #'allauth.twitter',
100
101     # included
102     'modeltranslation',
103     ]
104
105 INSTALLED_APPS = INSTALLED_APPS_OUR + INSTALLED_APPS_CONTRIB
106
107 # Load localsettings, if they exist
108 try:
109     from localsettings import *
110 except ImportError:
111     pass
112