Ajustements et réparations à l'authentification AUF.
[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'),
f893b3df 8 ('Éric Mc Sween', 'eric.mcsween@gmail.com')
155a7c62
CR
9)
10
11MANAGERS = ADMINS
12
155a7c62
CR
13TIME_ZONE = 'America/Chicago'
14
d15017b2 15LANGUAGE_CODE = 'fr-ca'
155a7c62
CR
16
17# Absolute path to the directory that holds media.
18# Example: "/home/media/media.lawrence.com/"
19MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
20
21# URL that handles the media served from MEDIA_ROOT. Make sure to use a
22# trailing slash if there is a path component (optional in other cases).
23# Examples: "http://media.lawrence.com", "http://example.com/media/"
24MEDIA_URL = '/media/'
25
26# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
27# trailing slash.
28# Examples: "http://foo.com/media/", "/media/".
29ADMIN_MEDIA_PREFIX = '/admin_media/'
30
7a355faa
AJ
31# List of callables that know how to import templates from various sources.
32TEMPLATE_LOADERS = (
33 'django.template.loaders.filesystem.load_template_source',
34 'django.template.loaders.app_directories.load_template_source',
35# 'django.template.loaders.eggs.load_template_source',
36)
37
155a7c62
CR
38MIDDLEWARE_CLASSES = (
39 'django.middleware.common.CommonMiddleware',
40 'django.contrib.sessions.middleware.SessionMiddleware',
41 'django.contrib.auth.middleware.AuthenticationMiddleware',
518d0b44 42 'chercheurs.middleware.ChercheurMiddleware',
9f1770cf 43 'djangoflash.middleware.FlashMiddleware',
7a355faa 44 'pagination.middleware.PaginationMiddleware',
155a7c62
CR
45 'django.middleware.doc.XViewMiddleware',
46)
47
0cc5f772 48ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
49
50
51INSTALLED_APPS = (
6d885e0c 52 'admin_tools',
53 'admin_tools.theming',
54 'admin_tools.menu',
55 'admin_tools.dashboard',
155a7c62
CR
56 'django.contrib.auth',
57 'django.contrib.contenttypes',
58 'django.contrib.sessions',
59 'django.contrib.admin',
7a355faa 60 'pagination',
31be6340 61 'compressor',
6ef8ead4 62 'django_roa',
d15017b2 63 'savoirs',
932eef9a 64 'chercheurs',
bab65667 65 'sitotheque',
5212238e 66 'djangosphinx',
10d8dc70 67 'datamaster_modeles'
155a7c62
CR
68)
69
9af73c99
AJ
70TEMPLATE_CONTEXT_PROCESSORS = (
71 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
72 "django.core.context_processors.auth",
73 "django.core.context_processors.debug",
74 "django.core.context_processors.i18n",
75 "django.core.context_processors.media",
76 "django.core.context_processors.request",
bae03b7b 77 "context_processors.discipline_region",
9f1770cf 78 "djangoflash.context_processors.flash"
9af73c99 79)
bae03b7b 80
155a7c62
CR
81TEMPLATE_LOADERS = (
82 'django.template.loaders.filesystem.load_template_source',
83 'django.template.loaders.app_directories.load_template_source',
84)
85
86TEMPLATE_DIRS = (
87 os.path.join(os.path.dirname(__file__), "templates"),
88)
89
2d0d06e4 90AUTHENTICATION_BACKENDS = ('authentification.AUFBackend', 'authentification.EmailBackend')
f67f66aa 91LOGIN_URL = '/chercheurs/connexion/'
518d0b44 92LOGIN_REDIRECT_URL = '/chercheurs/perso/'
5fa0c5a4 93
5530469e 94CACHE_BACKEND = 'memcached://localhost:11211'
42eb863b 95
79c398f6 96ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
6525d9ce 97
6d885e0c 98ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
99
0e9597af
AJ
100CONTACT_EMAIL = 'contact-savoirsenpartage@auf.org'
101
5212238e
EMS
102SPHINX_API_VERSION = 0x116
103SPHINX_PORT = 9312
104
79c398f6 105from auf_references_client.settings import *