1 # -*- encoding: utf-8 -*-
5 from project
.conf
import * # NOQA
7 PROJET_TITRE
= "Ressources humaines"
10 SERVER_EMAIL
= 'ne-pas-repondre@auf.org'
11 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
16 TIME_ZONE
= 'America/Montreal'
18 FORMAT_MODULE_PATH
= 'project.formats'
20 USE_THOUSAND_SEPARATOR
= False
22 DATE_INPUT_FORMATS
= ('%d-%m-%Y', )
24 SESSION_SAVE_EVERY_REQUEST
= True
25 SESSION_EXPIRE_AT_BROWSER_CLOSE
= True
27 # Absolute path to the directory that holds media.
28 # Example: "/home/media/media.lawrence.com/"
29 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
30 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
33 os
.path
.join(os
.path
.dirname(__file__
), 'assets'),
35 STATIC_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'static')
36 STATIC_URL
= '/static/'
38 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
39 # trailing slash if there is a path component (optional in other cases).
40 # Examples: "http://media.lawrence.com", "http://example.com/media/"
42 PRIVE_MEDIA_URL
= '/prive/'
43 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
45 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
47 # Examples: "http://foo.com/media/", "/media/".
48 #ADMIN_MEDIA_PREFIX = '/media/django/'
50 # Don't share this with anybody.
51 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
53 MIDDLEWARE_CLASSES
= (
54 'django.middleware.common.CommonMiddleware',
55 'django.contrib.sessions.middleware.SessionMiddleware',
56 'django.contrib.messages.middleware.MessageMiddleware',
57 'django.contrib.auth.middleware.AuthenticationMiddleware',
58 'auf.django.piwik.middleware.TrackMiddleware',
59 'django.middleware.doc.XViewMiddleware',
60 'reversion.middleware.RevisionMiddleware',
63 ROOT_URLCONF
= 'project.urls'
67 'auf.django.references',
69 'auf.django.admingroup',
70 'auf.django.workflow',
71 'auf.django.permissions',
74 'admin_tools.theming',
76 'admin_tools.dashboard',
77 'django.contrib.admin',
78 'django.contrib.auth',
79 'django.contrib.contenttypes',
80 'django.contrib.humanize',
81 'django.contrib.messages',
82 'django.contrib.sessions',
83 'django.contrib.staticfiles',
87 'raven.contrib.django',
95 'project.recrutement',
98 TEMPLATE_CONTEXT_PROCESSORS
= (
99 'django.contrib.auth.context_processors.auth',
100 'django.core.context_processors.debug',
101 'django.core.context_processors.i18n',
102 'django.core.context_processors.media',
103 'django.core.context_processors.static',
104 'django.contrib.messages.context_processors.messages',
105 'django.core.context_processors.request',
106 'auf.django.skin.context_processors.auf',
107 'project.dae.context_processors.user_in_dae_groupes',
110 AUTHENTICATION_BACKENDS
= (
111 'auf.django.auth.backends.CascadeBackend',
112 'auf.django.permissions.backends.AuthenticationBackend',
114 LOGIN_URL
= "/connexion"
115 LOGIN_REDIRECT_URL
= "/"
118 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
122 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
123 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
124 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
126 AJAX_LOOKUP_CHANNELS
= {
127 'responsables': ('project.dae.catalogues', 'Responsable'),
128 'dossiers': ('project.dae.catalogues', 'Dossier'),
129 'dae_postes': ('project.dae.catalogues', 'Poste'),
130 'pays': ('project.rh.catalogues', 'Pays'),
131 'implantations': ('project.rh.catalogues', 'Implantation'),
132 'typepostes': ('project.rh.catalogues', 'TypePoste'),
133 'postes': ('project.rh.catalogues', 'Poste'),
134 'valeurpoints': ('project.rh.catalogues', 'ValeurPoint'),
135 'employes': ('project.rh.catalogues', 'Employe'),
136 'dossiers': ('project.rh.catalogues', 'Dossier'),
138 AJAX_SELECT_INLINES
= 'inline'
141 TINYMCE_DEFAULT_CONFIG
= {
144 'theme_advanced_buttons1': (
145 "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,"
148 'theme_advanced_buttons2': "",
149 'theme_advanced_buttons3': "",
150 'theme_advanced_statusbar_location': "bottom",
151 'theme_advanced_toolbar_align': "left",
152 'theme_advanced_styles': "Titre=titre;Sous-titre=sous-titre;Normal=normal",
155 'theme_advanced_resizing': "true",
156 'custom_undo_redo_levels': 10,
157 'theme_advanced_toolbar_location': 'top',
158 'inline_styles': 'false',
159 'paste_use_dialog': 'false',
160 'paste_auto_cleanup_on_paste': 'true',
161 'paste_convert_headers_to_strong': 'false',
162 'paste_strip_class_attributes': 'all',
163 'paste_remove_spans': 'true',
164 'paste_remove_styles': 'true',
165 'content_css': '/media/css/tinymce.css',
169 SENDFILE_BACKEND
= 'sendfile.backends.simple'
171 QBE_DISPLAY_DATABASES
= False
173 # Il est *très* important de respecter la case.
174 QBE_CUSTOM_MODELS
= {'Rh': {
182 QBE_ALLOWED_FIELDS
= {'Rh': {
184 'nom', 'prenom', 'genre', 'date_naissance', 'situation_familiale',
187 'Poste': ['nom', 'date_debut', 'date_fin'],
189 'statut_residence', 'regime_travail',
190 'regime_travail_nb_heure_semaine', 'date_debut', 'date_fin'
192 'Remuneration': ['montant', 'date_debut', 'date_fin'],
193 'Contrat': ['date_debut', 'date_fin'],
196 SOUTH_TESTS_MIGRATE
= False
200 'disable_existing_loggers': True,
203 'handlers': ['sentry'],
207 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
213 'class': 'raven.contrib.django.handlers.SentryHandler',
217 'class': 'logging.StreamHandler',
218 'formatter': 'verbose'
222 'django.db.backends': {
224 'handlers': ['console'],
229 'handlers': ['console'],
234 'handlers': ['console'],