1 # -*- encoding: utf-8 -*-
7 PROJET_TITRE
= "Demande d'autorisation d'embauche"
10 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
17 TIME_ZONE
= 'Canada/Montreal'
19 LANGUAGE_CODE
= 'fr-ca'
21 # Absolute path to the directory that holds media.
22 # Example: "/home/media/media.lawrence.com/"
23 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
24 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
26 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
27 # trailing slash if there is a path component (optional in other cases).
28 # Examples: "http://media.lawrence.com", "http://example.com/media/"
30 PRIVE_MEDIA_URL
= '/dae/prive/'
33 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
35 # Examples: "http://foo.com/media/", "/media/".
36 ADMIN_MEDIA_PREFIX
= '/media/django/'
38 # Don't share this with anybody.
39 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
41 MIDDLEWARE_CLASSES
= (
42 'django.middleware.common.CommonMiddleware',
43 'django.contrib.sessions.middleware.SessionMiddleware',
44 'django.contrib.messages.middleware.MessageMiddleware',
45 'django.contrib.auth.middleware.AuthenticationMiddleware',
46 'django.middleware.doc.XViewMiddleware',
47 'reversion.middleware.RevisionMiddleware',
50 ROOT_URLCONF
= 'project.urls'
56 'admin_tools.theming',
58 'admin_tools.dashboard',
59 'django.contrib.auth',
60 'django.contrib.contenttypes',
61 'django.contrib.messages',
62 'django.contrib.sessions',
63 'django.contrib.admin',
64 'auf.django.admingroup',
68 'auf.django.workflow',
73 TEMPLATE_CONTEXT_PROCESSORS
= (
74 'django.core.context_processors.auth',
75 'django.core.context_processors.debug',
76 'django.core.context_processors.i18n',
77 'django.core.context_processors.media',
78 'django.contrib.messages.context_processors.messages',
79 'django.core.context_processors.request',
80 'auf.django.skin.context_processors.auf',
81 'project.context_processors.utilisateur',
82 'project.context_processors.user_is_admin',
85 AUTHENTICATION_BACKENDS
= (
86 'auf.django.auth.backends.CascadeBackend',
88 LOGIN_URL
= "/connexion"
89 LOGIN_REDIRECT_URL
= "/"
92 'django.template.loaders.filesystem.load_template_source',
93 'django.template.loaders.app_directories.load_template_source',
97 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
101 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
103 AJAX_LOOKUP_CHANNELS
= {
104 'responsables' : ('dae.catalogues', 'Responsable'),
105 'dossiers' : ('dae.catalogues', 'Dossier'),
106 'postes' : ('dae.catalogues', 'Poste'),
111 SENDFILE_BACKEND
= 'sendfile.backends.simple'