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_SAVE_EVERY_REQUEST
= True
24 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
26 SHORT_DATE_FORMAT
= 'd-m-Y'
27 LANGUAGE_CODE
= 'fr-ca'
29 # Absolute path to the directory that holds media.
30 # Example: "/home/media/media.lawrence.com/"
31 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
32 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
35 os
.path
.join(os
.path
.dirname(__file__
), 'assets'),
39 STATIC_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'static')
40 STATIC_URL
= '/static/'
42 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
43 # trailing slash if there is a path component (optional in other cases).
44 # Examples: "http://media.lawrence.com", "http://example.com/media/"
46 PRIVE_MEDIA_URL
= '/rh/prive/'
47 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
49 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
51 # Examples: "http://foo.com/media/", "/media/".
52 #ADMIN_MEDIA_PREFIX = '/media/django/'
54 # Don't share this with anybody.
55 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
57 MIDDLEWARE_CLASSES
= (
58 'django.middleware.common.CommonMiddleware',
59 'django.contrib.sessions.middleware.SessionMiddleware',
60 'django.contrib.messages.middleware.MessageMiddleware',
61 'django.contrib.auth.middleware.AuthenticationMiddleware',
62 'django.middleware.doc.XViewMiddleware',
63 'reversion.middleware.RevisionMiddleware',
66 ROOT_URLCONF
= 'project.urls'
70 'auf.django.references',
72 'admin_tools.theming',
74 'admin_tools.dashboard',
75 'django.contrib.auth',
76 'django.contrib.contenttypes',
77 'django.contrib.messages',
78 'django.contrib.sessions',
79 'django.contrib.admin',
80 'django.contrib.staticfiles',
83 'auf.django.admingroup',
87 'auf.django.workflow',
88 'auf.django.permissions',
95 'project.recrutement',
101 TEMPLATE_CONTEXT_PROCESSORS
= (
102 'django.contrib.auth.context_processors.auth',
103 'django.core.context_processors.debug',
104 'django.core.context_processors.i18n',
105 'django.core.context_processors.media',
106 'django.core.context_processors.static',
107 'django.contrib.messages.context_processors.messages',
108 'django.core.context_processors.request',
109 'auf.django.skin.context_processors.auf',
110 'project.context_processors.this_employe',
111 'project.context_processors.user_is_admin',
112 'dae.context_processors.user_in_dae_groupes',
113 'recrutement.context_processors.user_in_recrutement_groupes',
116 AUTHENTICATION_BACKENDS
= (
117 'auf.django.auth.backends.CascadeBackend',
118 'auf.django.permissions.backends.AuthenticationBackend',
120 LOGIN_URL
= "/connexion"
121 LOGIN_REDIRECT_URL
= "/"
124 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
128 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
129 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
130 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
132 AJAX_LOOKUP_CHANNELS
= {
133 'responsables' : ('dae.catalogues', 'Responsable'),
134 'dossiers' : ('dae.catalogues', 'Dossier'),
135 'postes' : ('dae.catalogues', 'Poste'),
136 'pays' : ('rh.catalogues', 'Pays'),
137 'implantations' : ('rh.catalogues', 'Implantation'),
138 'typepostes' : ('rh.catalogues', 'TypePoste'),
139 'postes' : ('rh.catalogues', 'Poste'),
140 'valeurpoints' : ('rh.catalogues', 'ValeurPoint'),
141 'employes' : ('rh.catalogues', 'Employe'),
142 'dossiers' : ('rh.catalogues', 'Dossier'),
144 AJAX_SELECT_BOOTSTRAP
= True
145 AJAX_SELECT_INLINES
= 'inline'
148 TINYMCE_DEFAULT_CONFIG
= {
151 'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
152 'theme_advanced_buttons2' : "",
153 'theme_advanced_buttons3' : "",
154 'theme_advanced_statusbar_location' : "bottom",
155 'theme_advanced_toolbar_align' : "left",
156 'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
159 'theme_advanced_resizing' : "true",
160 'custom_undo_redo_levels': 10,
161 'theme_advanced_toolbar_location' : 'top',
162 'inline_styles' : 'false',
163 'paste_use_dialog' : 'false',
164 'paste_auto_cleanup_on_paste' : 'true',
165 'paste_convert_headers_to_strong' : 'false',
166 'paste_strip_class_attributes' : 'all',
167 'paste_remove_spans' : 'true',
168 'paste_remove_styles' : 'true',
169 'content_css' : '/media/css/tinymce.css',
173 'project.legacy.DatabaseRouter',
177 SENDFILE_BACKEND
= 'sendfile.backends.simple'