Tri approprié des briques
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / settings.py
1 # -*- encoding: utf-8 -*-
2
3 import os
4 from conf import *
5
6 ADMINS = (
7 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
8 ('Éric Mc Sween', 'eric.mcsween@gmail.com')
9 )
10
11 MANAGERS = ADMINS
12
13 TIME_ZONE = 'America/Chicago'
14
15 LANGUAGE_CODE = 'fr-ca'
16
17 # Absolute path to the directory that holds media.
18 # Example: "/home/media/media.lawrence.com/"
19 MEDIA_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/"
24 MEDIA_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/".
29 ADMIN_MEDIA_PREFIX = '/admin_media/'
30
31 # List of callables that know how to import templates from various sources.
32 TEMPLATE_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
38 MIDDLEWARE_CLASSES = (
39 'django.middleware.common.CommonMiddleware',
40 'django.contrib.sessions.middleware.SessionMiddleware',
41 'django.contrib.auth.middleware.AuthenticationMiddleware',
42 'djangoflash.middleware.FlashMiddleware',
43 'pagination.middleware.PaginationMiddleware',
44 'django.middleware.doc.XViewMiddleware',
45 )
46
47 ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
48
49
50 INSTALLED_APPS = (
51 'admin_tools',
52 'admin_tools.theming',
53 'admin_tools.menu',
54 'admin_tools.dashboard',
55 'django.contrib.auth',
56 'django.contrib.contenttypes',
57 'django.contrib.sessions',
58 'django.contrib.admin',
59 'pagination',
60 'compressor',
61 'django_roa',
62 'savoirs',
63 'chercheurs',
64 'sitotheque',
65 'datamaster_modeles'
66 )
67
68
69 TEMPLATE_CONTEXT_PROCESSORS = (
70 # default : http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#template-context-processors
71 "django.core.context_processors.auth",
72 "django.core.context_processors.debug",
73 "django.core.context_processors.i18n",
74 "django.core.context_processors.media",
75 "django.core.context_processors.request",
76 "context_processors.user_chercheur",
77 "context_processors.discipline_region",
78 "djangoflash.context_processors.flash"
79 )
80
81 TEMPLATE_LOADERS = (
82 'django.template.loaders.filesystem.load_template_source',
83 'django.template.loaders.app_directories.load_template_source',
84 )
85
86 TEMPLATE_DIRS = (
87 os.path.join(os.path.dirname(__file__), "templates"),
88 )
89
90 AUTHENTICATION_BACKENDS = (
91 'authentification.CascadeBackend',
92 )
93
94 CACHE_BACKEND = 'locmem://'
95
96 ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
97
98 ADMIN_TOOLS_INDEX_DASHBOARD = 'auf_savoirs_en_partage.dashboard.CustomIndexDashboard'
99
100 AUTH_PROFILE_MODULE = 'savoirs.Profile'
101
102 CONTACT_EMAIL = 'contact-savoirsenpartage@auf.org'
103
104 from auf_references_client.settings import *