Affichage dans la liste, la moyenne des notes de candidats
[auf_rh_dae.git] / project / settings.py
CommitLineData
5e23d90d
OL
1# -*- encoding: utf-8 -*-
2
3import os
4import socket
5from conf import *
6
8ea41642 7
3a2f12b2
OL
8PROJET_TITRE = "Demande d'autorisation d'embauche"
9
5e23d90d
OL
10# Rapports d'erreurs
11EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
12ADMINS = (
13 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
14)
15
16MANAGERS = ADMINS
17
18TIME_ZONE = 'Canada/Montreal'
fee4961a 19DATE_FORMAT = 'd F Y'
5e23d90d
OL
20LANGUAGE_CODE = 'fr-ca'
21
22# Absolute path to the directory that holds media.
23# Example: "/home/media/media.lawrence.com/"
24MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
36341125 25PRIVE_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media_prive')
5e23d90d
OL
26
27# URL that handles the media served from MEDIA_ROOT. Make sure to use a
28# trailing slash if there is a path component (optional in other cases).
29# Examples: "http://media.lawrence.com", "http://example.com/media/"
30MEDIA_URL = '/media/'
36341125
OL
31PRIVE_MEDIA_URL = '/prive/'
32
5e23d90d
OL
33
34# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
35# trailing slash.
36# Examples: "http://foo.com/media/", "/media/".
21f749ab 37ADMIN_MEDIA_PREFIX = '/media/django/'
5e23d90d
OL
38
39# Don't share this with anybody.
40SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
41
42MIDDLEWARE_CLASSES = (
43 'django.middleware.common.CommonMiddleware',
44 'django.contrib.sessions.middleware.SessionMiddleware',
9cb4de55 45 'django.contrib.messages.middleware.MessageMiddleware',
5e23d90d
OL
46 'django.contrib.auth.middleware.AuthenticationMiddleware',
47 'django.middleware.doc.XViewMiddleware',
17353922 48 'reversion.middleware.RevisionMiddleware',
5e23d90d
OL
49)
50
51ROOT_URLCONF = 'project.urls'
52
5e23d90d
OL
53INSTALLED_APPS = (
54 'auf.django.skin',
55 'admin_tools',
56 'admin_tools.theming',
57 'admin_tools.menu',
58 'admin_tools.dashboard',
59 'django.contrib.auth',
60 'django.contrib.contenttypes',
9cb4de55 61 'django.contrib.messages',
5e23d90d
OL
62 'django.contrib.sessions',
63 'django.contrib.admin',
fc18c1ca 64 'auf.django.admingroup',
3121c13c 65 'ajax_select',
5e23d90d 66 'south',
17353922 67 'reversion',
50fa9bc1 68 'project.rh',
e6f52402 69 'auf.django.workflow',
785c03cc 70 'project.rh_v1',
17353922 71 'project.dae',
119e48ac 72 'project.budget',
8ea41642 73 'project.recrutement',
74 'form_utils',
75# 'private_files',
5e23d90d
OL
76)
77
78TEMPLATE_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.contrib.messages.context_processors.messages',
84 'django.core.context_processors.request',
85 'auf.django.skin.context_processors.auf',
e993f3dc 86 'project.context_processors.utilisateur',
87 'project.context_processors.user_is_admin',
5e23d90d
OL
88)
89
8846b99e
OL
90AUTHENTICATION_BACKENDS = (
91 'auf.django.auth.backends.CascadeBackend',
92)
f8daa167 93LOGIN_URL = "/connexion"
5e23d90d
OL
94
95TEMPLATE_LOADERS = (
96 'django.template.loaders.filesystem.load_template_source',
97 'django.template.loaders.app_directories.load_template_source',
98)
99
100TEMPLATE_DIRS = (
101 os.path.join(os.path.dirname(__file__), "templates"),
102)
103
104
8846b99e 105ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
3121c13c
OL
106
107AJAX_LOOKUP_CHANNELS = {
108 'responsables' : ('dae.catalogues', 'Responsable'),
03b395db 109 'dossiers' : ('dae.catalogues', 'Dossier'),
3121c13c 110}
8ea41642 111
112#FILE_PROTECTION_METHOD = 'basic'