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