Merge branch 'nilovna' into dev
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / settings.py
CommitLineData
6525d9ce 1# -*- encoding: utf-8 -*-
155a7c62
CR
2
3import os
d15017b2 4from conf import *
155a7c62
CR
5
6ADMINS = (
ff024488 7 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
155a7c62
CR
8)
9
8cda4c7d
PP
10ADMINS_SEP = ('gilles.deggis@auf.org',)
11
155a7c62
CR
12MANAGERS = ADMINS
13
155a7c62
CR
14TIME_ZONE = 'America/Chicago'
15
d15017b2 16LANGUAGE_CODE = 'fr-ca'
155a7c62
CR
17
18# Absolute path to the directory that holds media.
19# Example: "/home/media/media.lawrence.com/"
20MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
21
22# URL that handles the media served from MEDIA_ROOT. Make sure to use a
23# trailing slash if there is a path component (optional in other cases).
24# Examples: "http://media.lawrence.com", "http://example.com/media/"
25MEDIA_URL = '/media/'
26
27# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
28# trailing slash.
29# Examples: "http://foo.com/media/", "/media/".
30ADMIN_MEDIA_PREFIX = '/admin_media/'
31
7a355faa
AJ
32# List of callables that know how to import templates from various sources.
33TEMPLATE_LOADERS = (
34 'django.template.loaders.filesystem.load_template_source',
35 'django.template.loaders.app_directories.load_template_source',
36# 'django.template.loaders.eggs.load_template_source',
37)
38
155a7c62 39MIDDLEWARE_CLASSES = (
1629c43d 40 'django.middleware.cache.UpdateCacheMiddleware',
8a335360 41 'django.middleware.gzip.GZipMiddleware',
155a7c62
CR
42 'django.middleware.common.CommonMiddleware',
43 'django.contrib.sessions.middleware.SessionMiddleware',
44 'django.contrib.auth.middleware.AuthenticationMiddleware',
1629c43d 45 'django.middleware.cache.FetchFromCacheMiddleware',
518d0b44 46 'chercheurs.middleware.ChercheurMiddleware',
9f1770cf 47 'djangoflash.middleware.FlashMiddleware',
7a355faa 48 'pagination.middleware.PaginationMiddleware',
155a7c62
CR
49 'django.middleware.doc.XViewMiddleware',
50)
51
0cc5f772 52ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
53
54
55INSTALLED_APPS = (
6d885e0c 56 'admin_tools',
57 'admin_tools.theming',
58 'admin_tools.menu',
59 'admin_tools.dashboard',
155a7c62
CR
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.sessions',
63 'django.contrib.admin',
7a355faa 64 'pagination',
31be6340 65 'compressor',
6ef8ead4 66 'django_roa',
d15017b2 67 'savoirs',
932eef9a 68 'chercheurs',
bab65667 69 'sitotheque',
5212238e 70 'djangosphinx',
f78371b2
EMS
71 'south',
72 'auf.django.admingroup',
693c606b 73 'auf.django.references',
b1d4c7ac 74 'alphafilter',
933268d6 75 'interfaces',
c4312cce 76 'rappels',
693c606b 77 'pytz',
155a7c62
CR
78)
79
9af73c99
AJ
80TEMPLATE_CONTEXT_PROCESSORS = (
81 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
82 "django.core.context_processors.auth",
83 "django.core.context_processors.debug",
84 "django.core.context_processors.i18n",
85 "django.core.context_processors.media",
86 "django.core.context_processors.request",
bae03b7b 87 "context_processors.discipline_region",
9f1770cf 88 "djangoflash.context_processors.flash"
9af73c99 89)
bae03b7b 90
155a7c62
CR
91TEMPLATE_LOADERS = (
92 'django.template.loaders.filesystem.load_template_source',
93 'django.template.loaders.app_directories.load_template_source',
94)
95
96TEMPLATE_DIRS = (
97 os.path.join(os.path.dirname(__file__), "templates"),
98)
99
695930dd 100AUTHENTICATION_BACKENDS = (
0853f354 101 'auf.django.auth.backends.CascadeBackend', #'authentification.AUFBackend',
695930dd
EMS
102 'authentification.PersonneBackend',
103 'django.contrib.auth.backends.ModelBackend',
104)
f1df3ff6
EMS
105AUTH_PROFILE_MODULE = 'savoirs.Profile'
106
f67f66aa 107LOGIN_URL = '/chercheurs/connexion/'
518d0b44 108LOGIN_REDIRECT_URL = '/chercheurs/perso/'
5fa0c5a4 109
5530469e 110CACHE_BACKEND = 'memcached://localhost:11211'
1629c43d 111CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
42eb863b 112
79c398f6 113ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
6525d9ce 114
6d885e0c 115ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
9c29b8d4 116ADMIN_TOOLS_MENU = 'auf_savoirs_en_partage.menu.CustomMenu'
6d885e0c 117
0e9597af
AJ
118CONTACT_EMAIL = 'contact-savoirsenpartage@auf.org'
119
5212238e
EMS
120SPHINX_API_VERSION = 0x116
121SPHINX_PORT = 9312
122
79c398f6 123from auf_references_client.settings import *