Ajouté des tests à Savoirs en partage.
[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 38MIDDLEWARE_CLASSES = (
42eb863b 39 'django.middleware.cache.UpdateCacheMiddleware',
155a7c62 40 'django.middleware.common.CommonMiddleware',
42eb863b 41 'django.middleware.cache.FetchFromCacheMiddleware',
155a7c62
CR
42 'django.contrib.sessions.middleware.SessionMiddleware',
43 'django.contrib.auth.middleware.AuthenticationMiddleware',
8baa2a56 44 'djangoflash.middleware.FlashMiddleware',
7a355faa
AJ
45 'pagination.middleware.PaginationMiddleware',
46 'django_sorting.middleware.SortingMiddleware',
155a7c62
CR
47 'django.middleware.doc.XViewMiddleware',
48)
49
0cc5f772 50ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
51
52
53INSTALLED_APPS = (
6d885e0c 54 'admin_tools',
55 'admin_tools.theming',
56 'admin_tools.menu',
57 'admin_tools.dashboard',
155a7c62
CR
58 'django.contrib.auth',
59 'django.contrib.contenttypes',
60 'django.contrib.sessions',
61 'django.contrib.admin',
7a355faa
AJ
62 'pagination',
63 'django_sorting',
31be6340 64 'compressor',
6ef8ead4 65 'django_roa',
d15017b2 66 'savoirs',
932eef9a 67 'chercheurs',
bab65667 68 'sitotheque',
b31bd4ef 69 'datamaster_modeles'
155a7c62
CR
70)
71
9af73c99
AJ
72
73TEMPLATE_CONTEXT_PROCESSORS = (
74 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
75 "django.core.context_processors.auth",
76 "django.core.context_processors.debug",
77 "django.core.context_processors.i18n",
78 "django.core.context_processors.media",
79 "django.core.context_processors.request",
80 "context_processors.user_chercheur",
bae03b7b 81 "context_processors.discipline_region",
8baa2a56 82 "djangoflash.context_processors.flash"
9af73c99 83)
bae03b7b 84
155a7c62
CR
85TEMPLATE_LOADERS = (
86 'django.template.loaders.filesystem.load_template_source',
87 'django.template.loaders.app_directories.load_template_source',
88)
89
90TEMPLATE_DIRS = (
91 os.path.join(os.path.dirname(__file__), "templates"),
92)
93
6ef8ead4 94AUTHENTICATION_BACKENDS = (
9af73c99 95 'authentification.CascadeBackend',
6ef8ead4 96)
5fa0c5a4 97
116db1fd 98CACHE_BACKEND = 'locmem://'
42eb863b 99
79c398f6 100ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
6525d9ce 101
6d885e0c 102ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
103
104AUTH_PROFILE_MODULE = 'savoirs.Profile'
105
0e9597af
AJ
106CONTACT_EMAIL = 'contact-savoirsenpartage@auf.org'
107
79c398f6 108from auf_references_client.settings import *