Ajout de l'API pour Faun Auteurs
[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'),
6b22e8c3 8 ('PA', 'paparent+auf@paparent.me')
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 = (
1629c43d 39 'django.middleware.cache.UpdateCacheMiddleware',
8a335360 40 'django.middleware.gzip.GZipMiddleware',
155a7c62
CR
41 'django.middleware.common.CommonMiddleware',
42 'django.contrib.sessions.middleware.SessionMiddleware',
43 'django.contrib.auth.middleware.AuthenticationMiddleware',
1629c43d 44 'django.middleware.cache.FetchFromCacheMiddleware',
518d0b44 45 'chercheurs.middleware.ChercheurMiddleware',
9f1770cf 46 'djangoflash.middleware.FlashMiddleware',
7a355faa 47 'pagination.middleware.PaginationMiddleware',
155a7c62
CR
48 'django.middleware.doc.XViewMiddleware',
49)
50
0cc5f772 51ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
52
53
54INSTALLED_APPS = (
6d885e0c 55 'admin_tools',
56 'admin_tools.theming',
57 'admin_tools.menu',
58 'admin_tools.dashboard',
155a7c62
CR
59 'django.contrib.auth',
60 'django.contrib.contenttypes',
61 'django.contrib.sessions',
62 'django.contrib.admin',
7a355faa 63 'pagination',
31be6340 64 'compressor',
6ef8ead4 65 'django_roa',
d15017b2 66 'savoirs',
932eef9a 67 'chercheurs',
bab65667 68 'sitotheque',
5212238e 69 'djangosphinx',
3c50ec6e 70 'datamaster_modeles',
f78371b2
EMS
71 'south',
72 'auf.django.admingroup',
b1d4c7ac 73 'alphafilter',
933268d6 74 'interfaces',
155a7c62
CR
75)
76
9af73c99
AJ
77TEMPLATE_CONTEXT_PROCESSORS = (
78 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
79 "django.core.context_processors.auth",
80 "django.core.context_processors.debug",
81 "django.core.context_processors.i18n",
82 "django.core.context_processors.media",
83 "django.core.context_processors.request",
bae03b7b 84 "context_processors.discipline_region",
9f1770cf 85 "djangoflash.context_processors.flash"
9af73c99 86)
bae03b7b 87
155a7c62
CR
88TEMPLATE_LOADERS = (
89 'django.template.loaders.filesystem.load_template_source',
90 'django.template.loaders.app_directories.load_template_source',
91)
92
93TEMPLATE_DIRS = (
94 os.path.join(os.path.dirname(__file__), "templates"),
95)
96
695930dd 97AUTHENTICATION_BACKENDS = (
0853f354 98 'auf.django.auth.backends.CascadeBackend', #'authentification.AUFBackend',
695930dd
EMS
99 'authentification.PersonneBackend',
100 'django.contrib.auth.backends.ModelBackend',
101)
f1df3ff6
EMS
102AUTH_PROFILE_MODULE = 'savoirs.Profile'
103
f67f66aa 104LOGIN_URL = '/chercheurs/connexion/'
518d0b44 105LOGIN_REDIRECT_URL = '/chercheurs/perso/'
5fa0c5a4 106
5530469e 107CACHE_BACKEND = 'memcached://localhost:11211'
1629c43d 108CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
42eb863b 109
79c398f6 110ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
6525d9ce 111
6d885e0c 112ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
9c29b8d4 113ADMIN_TOOLS_MENU = 'auf_savoirs_en_partage.menu.CustomMenu'
6d885e0c 114
0e9597af
AJ
115CONTACT_EMAIL = 'contact-savoirsenpartage@auf.org'
116
5212238e
EMS
117SPHINX_API_VERSION = 0x116
118SPHINX_PORT = 9312
119
79c398f6 120from auf_references_client.settings import *