1 # -*- encoding: utf-8 -*-
6 PROJET_TITRE
= "Ressources humaines"
9 SERVER_EMAIL
= 'ne-pas-repondre@auf.org'
10 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
17 TIME_ZONE
= 'America/Montreal'
19 DATE_INPUT_FORMATS
= (
20 '%d-%m-%Y', '%d/%m/%Y', '%d %m %Y',
21 '%d-%m-%y', '%d/%m/%y', '%d %m %y',
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
= '/prive/'
48 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
50 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
52 # Examples: "http://foo.com/media/", "/media/".
53 #ADMIN_MEDIA_PREFIX = '/media/django/'
55 # Don't share this with anybody.
56 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
58 MIDDLEWARE_CLASSES
= (
59 'django.middleware.common.CommonMiddleware',
60 'django.contrib.sessions.middleware.SessionMiddleware',
61 'django.contrib.messages.middleware.MessageMiddleware',
62 'django.contrib.auth.middleware.AuthenticationMiddleware',
63 'django.middleware.doc.XViewMiddleware',
64 'reversion.middleware.RevisionMiddleware',
67 ROOT_URLCONF
= 'project.urls'
71 'auf.django.references',
73 'admin_tools.theming',
75 'admin_tools.dashboard',
76 'django.contrib.auth',
77 'django.contrib.contenttypes',
78 'django.contrib.messages',
79 'django.contrib.sessions',
80 'django.contrib.admin',
81 'django.contrib.staticfiles',
84 'auf.django.admingroup',
88 'auf.django.workflow',
89 'auf.django.permissions',
96 'project.recrutement',
102 TEMPLATE_CONTEXT_PROCESSORS
= (
103 'django.contrib.auth.context_processors.auth',
104 'django.core.context_processors.debug',
105 'django.core.context_processors.i18n',
106 'django.core.context_processors.media',
107 'django.core.context_processors.static',
108 'django.contrib.messages.context_processors.messages',
109 'django.core.context_processors.request',
110 'auf.django.skin.context_processors.auf',
111 'project.context_processors.this_employe',
112 'project.context_processors.user_is_admin',
113 'dae.context_processors.user_in_dae_groupes',
114 'recrutement.context_processors.user_in_recrutement_groupes',
117 AUTHENTICATION_BACKENDS
= (
118 'auf.django.auth.backends.CascadeBackend',
119 'auf.django.permissions.backends.AuthenticationBackend',
121 LOGIN_URL
= "/connexion"
122 LOGIN_REDIRECT_URL
= "/"
125 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
129 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
130 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
131 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
133 AJAX_LOOKUP_CHANNELS
= {
134 'responsables' : ('dae.catalogues', 'Responsable'),
135 'dossiers' : ('dae.catalogues', 'Dossier'),
136 'dae_postes' : ('dae.catalogues', 'Poste'),
137 'pays' : ('rh.catalogues', 'Pays'),
138 'implantations' : ('rh.catalogues', 'Implantation'),
139 'typepostes' : ('rh.catalogues', 'TypePoste'),
140 'postes' : ('rh.catalogues', 'Poste'),
141 'valeurpoints' : ('rh.catalogues', 'ValeurPoint'),
142 'employes' : ('rh.catalogues', 'Employe'),
143 'dossiers' : ('rh.catalogues', 'Dossier'),
145 AJAX_SELECT_BOOTSTRAP
= True
146 AJAX_SELECT_INLINES
= 'inline'
149 TINYMCE_DEFAULT_CONFIG
= {
152 'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
153 'theme_advanced_buttons2' : "",
154 'theme_advanced_buttons3' : "",
155 'theme_advanced_statusbar_location' : "bottom",
156 'theme_advanced_toolbar_align' : "left",
157 'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
160 'theme_advanced_resizing' : "true",
161 'custom_undo_redo_levels': 10,
162 'theme_advanced_toolbar_location' : 'top',
163 'inline_styles' : 'false',
164 'paste_use_dialog' : 'false',
165 'paste_auto_cleanup_on_paste' : 'true',
166 'paste_convert_headers_to_strong' : 'false',
167 'paste_strip_class_attributes' : 'all',
168 'paste_remove_spans' : 'true',
169 'paste_remove_styles' : 'true',
170 'content_css' : '/media/css/tinymce.css',
174 'project.legacy.DatabaseRouter',
178 SENDFILE_BACKEND
= 'sendfile.backends.simple'