ferme #460 ajout du dashboard pour connaitre les references à traiter
[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 = (
7 # ('Your Name', 'your_email@domain.com'),
8)
9
10MANAGERS = ADMINS
11
155a7c62
CR
12TIME_ZONE = 'America/Chicago'
13
d15017b2 14LANGUAGE_CODE = 'fr-ca'
155a7c62
CR
15
16# Absolute path to the directory that holds media.
17# Example: "/home/media/media.lawrence.com/"
18MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
19
20# URL that handles the media served from MEDIA_ROOT. Make sure to use a
21# trailing slash if there is a path component (optional in other cases).
22# Examples: "http://media.lawrence.com", "http://example.com/media/"
23MEDIA_URL = '/media/'
24
25# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
26# trailing slash.
27# Examples: "http://foo.com/media/", "/media/".
28ADMIN_MEDIA_PREFIX = '/admin_media/'
29
7a355faa
AJ
30# List of callables that know how to import templates from various sources.
31TEMPLATE_LOADERS = (
32 'django.template.loaders.filesystem.load_template_source',
33 'django.template.loaders.app_directories.load_template_source',
34# 'django.template.loaders.eggs.load_template_source',
35)
36
37TEMPLATE_CONTEXT_PROCESSORS = (
38 'django.core.context_processors.auth',
39 'django.core.context_processors.debug',
40 'django.core.context_processors.i18n',
41 'django.core.context_processors.media',
42 'django.core.context_processors.request',
43)
44
45
155a7c62 46MIDDLEWARE_CLASSES = (
42eb863b 47 'django.middleware.cache.UpdateCacheMiddleware',
155a7c62 48 'django.middleware.common.CommonMiddleware',
42eb863b 49 'django.middleware.cache.FetchFromCacheMiddleware',
155a7c62
CR
50 'django.contrib.sessions.middleware.SessionMiddleware',
51 'django.contrib.auth.middleware.AuthenticationMiddleware',
7a355faa
AJ
52 'pagination.middleware.PaginationMiddleware',
53 'django_sorting.middleware.SortingMiddleware',
155a7c62
CR
54 'django.middleware.doc.XViewMiddleware',
55)
56
0cc5f772 57ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
58
59
60INSTALLED_APPS = (
6d885e0c 61 'admin_tools',
62 'admin_tools.theming',
63 'admin_tools.menu',
64 'admin_tools.dashboard',
155a7c62
CR
65 'django.contrib.auth',
66 'django.contrib.contenttypes',
67 'django.contrib.sessions',
68 'django.contrib.admin',
7a355faa
AJ
69 'pagination',
70 'django_sorting',
6ef8ead4 71 'django_roa',
92c7413b 72 'timezones',
d15017b2 73 'savoirs',
932eef9a 74 'chercheurs',
bab65667 75 'sitotheque',
155a7c62
CR
76)
77
9af73c99
AJ
78
79TEMPLATE_CONTEXT_PROCESSORS = (
80 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
81 "django.core.context_processors.auth",
82 "django.core.context_processors.debug",
83 "django.core.context_processors.i18n",
84 "django.core.context_processors.media",
85 "django.core.context_processors.request",
86 "context_processors.user_chercheur",
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
6ef8ead4 97AUTHENTICATION_BACKENDS = (
9af73c99 98 'authentification.CascadeBackend',
6ef8ead4 99)
5fa0c5a4 100
42eb863b
CR
101CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
102
79c398f6 103ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
6525d9ce 104
6d885e0c 105ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
106
107AUTH_PROFILE_MODULE = 'savoirs.Profile'
108
79c398f6 109from auf_references_client.settings import *