1 # -*- encoding: utf-8 -*-
6 PROJET_TITRE
= "Ressources humaines"
9 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
11 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
16 TIME_ZONE
= 'America/Montreal'
18 DATE_INPUT_FORMATS
= (
19 '%d-%m-%Y', '%d/%m/%Y', '%d %m %Y',
20 '%d-%m-%y', '%d/%m/%y', '%d %m %y',
23 SESSION_COOKIE_AGE
= 1800 #60 secondes * 30 minutes = 1800
24 SESSION_SAVE_EVERY_REQUEST
= True
25 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
27 SHORT_DATE_FORMAT
= 'd-m-Y'
28 LANGUAGE_CODE
= 'fr-ca'
30 # Absolute path to the directory that holds media.
31 # Example: "/home/media/media.lawrence.com/"
32 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
33 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
36 os
.path
.join(os
.path
.dirname(__file__
), 'assets'),
40 STATIC_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'static')
41 STATIC_URL
= '/static/'
43 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
44 # trailing slash if there is a path component (optional in other cases).
45 # Examples: "http://media.lawrence.com", "http://example.com/media/"
47 PRIVE_MEDIA_URL
= '/rh/prive/'
48 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
51 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53 # Examples: "http://foo.com/media/", "/media/".
54 #ADMIN_MEDIA_PREFIX = '/media/django/'
56 # Don't share this with anybody.
57 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
59 MIDDLEWARE_CLASSES
= (
60 'django.middleware.common.CommonMiddleware',
61 'django.contrib.sessions.middleware.SessionMiddleware',
62 'django.contrib.messages.middleware.MessageMiddleware',
63 'django.contrib.auth.middleware.AuthenticationMiddleware',
64 'django.middleware.doc.XViewMiddleware',
65 'reversion.middleware.RevisionMiddleware',
68 ROOT_URLCONF
= 'project.urls'
72 'auf.django.references',
74 'admin_tools.theming',
76 'admin_tools.dashboard',
77 'django.contrib.auth',
78 'django.contrib.contenttypes',
79 'django.contrib.messages',
80 'django.contrib.sessions',
81 'django.contrib.admin',
82 'django.contrib.staticfiles',
85 'auf.django.admingroup',
89 'auf.django.workflow',
90 'auf.django.permissions',
97 'project.recrutement',
103 TEMPLATE_CONTEXT_PROCESSORS
= (
104 'django.core.context_processors.auth',
105 'django.core.context_processors.debug',
106 'django.core.context_processors.i18n',
107 'django.core.context_processors.media',
108 'django.core.context_processors.static',
109 'django.contrib.messages.context_processors.messages',
110 'django.core.context_processors.request',
111 'auf.django.skin.context_processors.auf',
112 'project.context_processors.this_employe',
113 'project.context_processors.user_is_admin',
114 'dae.context_processors.user_in_dae_groupes',
115 'recrutement.context_processors.user_in_recrutement_groupes',
118 AUTHENTICATION_BACKENDS
= (
119 'auf.django.auth.backends.CascadeBackend',
120 'auf.django.permissions.backends.AuthenticationBackend',
122 LOGIN_URL
= "/connexion"
123 LOGIN_REDIRECT_URL
= "/"
126 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
130 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
131 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
132 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
134 AJAX_LOOKUP_CHANNELS
= {
135 'responsables' : ('dae.catalogues', 'Responsable'),
136 'dossiers' : ('dae.catalogues', 'Dossier'),
137 'postes' : ('dae.catalogues', 'Poste'),
138 'pays' : ('rh.catalogues', 'Pays'),
139 'implantations' : ('rh.catalogues', 'Implantation'),
140 'typepostes' : ('rh.catalogues', 'TypePoste'),
141 'postes' : ('rh.catalogues', 'Poste'),
142 'valeurpoints' : ('rh.catalogues', 'ValeurPoint'),
143 'employes' : ('rh.catalogues', 'Employe'),
144 'dossiers' : ('rh.catalogues', 'Dossier'),
146 AJAX_SELECT_BOOTSTRAP
= True
147 AJAX_SELECT_INLINES
= 'inline'
150 TINYMCE_DEFAULT_CONFIG
= {
153 'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
154 'theme_advanced_buttons2' : "",
155 'theme_advanced_buttons3' : "",
156 'theme_advanced_statusbar_location' : "bottom",
157 'theme_advanced_toolbar_align' : "left",
158 'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
161 'theme_advanced_resizing' : "true",
162 'custom_undo_redo_levels': 10,
163 'theme_advanced_toolbar_location' : 'top',
164 'inline_styles' : 'false',
165 'paste_use_dialog' : 'false',
166 'paste_auto_cleanup_on_paste' : 'true',
167 'paste_convert_headers_to_strong' : 'false',
168 'paste_strip_class_attributes' : 'all',
169 'paste_remove_spans' : 'true',
170 'paste_remove_styles' : 'true',
171 'content_css' : '/media/css/tinymce.css',
175 'project.legacy.DatabaseRouter',
179 SENDFILE_BACKEND
= 'sendfile.backends.simple'