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 PROJECT_ROOT
= os
.path
.dirname(__file__
)
28 SITE_ROOT
= os
.path
.dirname(PROJECT_ROOT
)
30 # Absolute path to the directory that holds media.
31 # Example: "/home/media/media.lawrence.com/"
32 MEDIA_ROOT
= os
.path
.join(PROJECT_ROOT
, 'media')
33 PRIVE_MEDIA_ROOT
= os
.path
.join(PROJECT_ROOT
, 'media_prive')
36 os
.path
.join(PROJECT_ROOT
, 'assets'),
38 STATIC_ROOT
= os
.path
.join(PROJECT_ROOT
, 'static')
39 STATIC_URL
= '/static/'
41 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
42 # trailing slash if there is a path component (optional in other cases).
43 # Examples: "http://media.lawrence.com", "http://example.com/media/"
45 PRIVE_MEDIA_URL
= '/prive/'
46 OE_PRIVE_MEDIA_URL
= '/recrutement/prive/'
48 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
50 # Examples: "http://foo.com/media/", "/media/".
51 #ADMIN_MEDIA_PREFIX = '/media/django/'
53 # Don't share this with anybody.
54 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
56 MIDDLEWARE_CLASSES
= (
57 'django.middleware.common.CommonMiddleware',
58 'django.contrib.sessions.middleware.SessionMiddleware',
59 'django.contrib.messages.middleware.MessageMiddleware',
60 'django.contrib.auth.middleware.AuthenticationMiddleware',
61 'auf.django.saml.middleware.SPMiddleware',
62 'django.middleware.doc.XViewMiddleware',
63 'reversion.middleware.RevisionMiddleware',
66 ROOT_URLCONF
= 'project.urls'
70 'auf.django.references',
72 'auf.django.admingroup',
73 'auf.django.workflow',
74 'auf.django.permissions',
78 'admin_tools.theming',
80 'admin_tools.dashboard',
81 'django.contrib.admin',
82 'django.contrib.auth',
83 'django.contrib.contenttypes',
84 'django.contrib.humanize',
85 'django.contrib.messages',
86 'django.contrib.sessions',
87 'django.contrib.staticfiles',
91 'raven.contrib.django',
99 '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.dae.context_processors.user_in_dae_groupes',
114 AUTHENTICATION_BACKENDS
= (
115 'auf.django.saml.backends.SPBackend',
116 'auf.django.permissions.backends.AuthenticationBackend',
120 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
124 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
125 ADMIN_TOOLS_APP_INDEX_DASHBOARD
= 'project.dashboard.CustomAppIndexDashboard'
126 ADMIN_TOOLS_MENU
= 'project.menu.CustomMenu'
128 AJAX_LOOKUP_CHANNELS
= {
129 'responsables': ('project.dae.catalogues', 'Responsable'),
130 'dossiers': ('project.dae.catalogues', 'Dossier'),
131 'dae_postes': ('project.dae.catalogues', 'Poste'),
132 'pays': ('project.rh.catalogues', 'Pays'),
133 'implantations': ('project.rh.catalogues', 'Implantation'),
134 'typepostes': ('project.rh.catalogues', 'TypePoste'),
135 'postes': ('project.rh.catalogues', 'Poste'),
136 'valeurpoints': ('project.rh.catalogues', 'ValeurPoint'),
137 'employes': ('project.rh.catalogues', 'Employe'),
138 'dossiers': ('project.rh.catalogues', 'Dossier'),
140 AJAX_SELECT_INLINES
= 'inline'
143 TINYMCE_DEFAULT_CONFIG
= {
146 'theme_advanced_buttons1': (
147 "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,"
150 'theme_advanced_buttons2': "",
151 'theme_advanced_buttons3': "",
152 'theme_advanced_statusbar_location': "bottom",
153 'theme_advanced_toolbar_align': "left",
154 'theme_advanced_styles': "Titre=titre;Sous-titre=sous-titre;Normal=normal",
157 'theme_advanced_resizing': "true",
158 'custom_undo_redo_levels': 10,
159 'theme_advanced_toolbar_location': 'top',
160 'inline_styles': 'false',
161 'paste_use_dialog': 'false',
162 'paste_auto_cleanup_on_paste': 'true',
163 'paste_convert_headers_to_strong': 'false',
164 'paste_strip_class_attributes': 'all',
165 'paste_remove_spans': 'true',
166 'paste_remove_styles': 'true',
167 'content_css': '/media/css/tinymce.css',
171 SENDFILE_BACKEND
= 'sendfile.backends.simple'
173 QBE_DISPLAY_DATABASES
= False
175 # Il est *très* important de respecter la case.
176 QBE_CUSTOM_MODELS
= {'Rh': {
184 QBE_ALLOWED_FIELDS
= {'Rh': {
186 'nom', 'prenom', 'genre', 'date_naissance', 'situation_familiale',
189 'Poste': ['nom', 'date_debut', 'date_fin'],
191 'statut_residence', 'regime_travail',
192 'regime_travail_nb_heure_semaine', 'date_debut', 'date_fin'
194 'Remuneration': ['montant', 'date_debut', 'date_fin'],
195 'Contrat': ['date_debut', 'date_fin'],
198 SOUTH_TESTS_MIGRATE
= False
202 'disable_existing_loggers': True,
205 'handlers': ['sentry'],
209 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
215 'class': 'raven.contrib.django.handlers.SentryHandler',
219 'class': 'logging.StreamHandler',
220 'formatter': 'verbose'
224 'django.db.backends': {
226 'handlers': ['console'],
231 'handlers': ['console'],
236 'handlers': ['console'],