1 # -*- encoding: utf-8 -*-
8 PROJET_TITRE
= "Demande d'autorisation d'embauche"
11 EMAIL_SUBJECT_PREFIX
= '[auf_rh_dae - %s] ' % socket
.gethostname()
13 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
18 TIME_ZONE
= 'Canada/Montreal'
20 LANGUAGE_CODE
= 'fr-ca'
22 # Absolute path to the directory that holds media.
23 # Example: "/home/media/media.lawrence.com/"
24 MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media')
25 PRIVE_MEDIA_ROOT
= os
.path
.join(os
.path
.dirname(__file__
), 'media_prive')
27 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
28 # trailing slash if there is a path component (optional in other cases).
29 # Examples: "http://media.lawrence.com", "http://example.com/media/"
31 PRIVE_MEDIA_URL
= '/prive/'
34 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
36 # Examples: "http://foo.com/media/", "/media/".
37 ADMIN_MEDIA_PREFIX
= '/media/django/'
39 # Don't share this with anybody.
40 SECRET_KEY
= '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
42 MIDDLEWARE_CLASSES
= (
43 'django.middleware.common.CommonMiddleware',
44 'django.contrib.sessions.middleware.SessionMiddleware',
45 'django.contrib.messages.middleware.MessageMiddleware',
46 'django.contrib.auth.middleware.AuthenticationMiddleware',
47 'django.middleware.doc.XViewMiddleware',
48 'reversion.middleware.RevisionMiddleware',
51 ROOT_URLCONF
= 'project.urls'
56 'admin_tools.theming',
58 'admin_tools.dashboard',
59 'django.contrib.auth',
60 'django.contrib.contenttypes',
61 'django.contrib.messages',
62 'django.contrib.sessions',
63 'django.contrib.admin',
64 'auf.django.admingroup',
69 'auf.django.workflow',
73 'project.recrutement',
80 TEMPLATE_CONTEXT_PROCESSORS
= (
81 'django.core.context_processors.auth',
82 'django.core.context_processors.debug',
83 'django.core.context_processors.i18n',
84 'django.core.context_processors.media',
85 'django.contrib.messages.context_processors.messages',
86 'django.core.context_processors.request',
87 'auf.django.skin.context_processors.auf',
88 'project.context_processors.utilisateur',
89 'project.context_processors.user_is_admin',
92 AUTHENTICATION_BACKENDS
= (
93 'auf.django.auth.backends.CascadeBackend',
95 LOGIN_URL
= "/connexion"
98 'django.template.loaders.filesystem.load_template_source',
99 'django.template.loaders.app_directories.load_template_source',
103 os
.path
.join(os
.path
.dirname(__file__
), "templates"),
107 ADMIN_TOOLS_INDEX_DASHBOARD
= 'project.dashboard.CustomIndexDashboard'
109 AJAX_LOOKUP_CHANNELS
= {
110 'responsables' : ('dae.catalogues', 'Responsable'),
111 'dossiers' : ('dae.catalogues', 'Dossier'),
114 TINYMCE_DEFAULT_CONFIG
= {
117 'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
118 'theme_advanced_buttons2' : "",
119 'theme_advanced_buttons3' : "",
120 'theme_advanced_statusbar_location' : "bottom",
121 'theme_advanced_toolbar_align' : "left",
122 'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
125 'theme_advanced_resizing' : "true",
126 'custom_undo_redo_levels': 10,
127 'theme_advanced_toolbar_location' : 'top',
128 'inline_styles' : 'false',
129 'paste_use_dialog' : 'false',
130 'paste_auto_cleanup_on_paste' : 'true',
131 'paste_convert_headers_to_strong' : 'false',
132 'paste_strip_class_attributes' : 'all',
133 'paste_remove_spans' : 'true',
134 'paste_remove_styles' : 'true',
135 'content_css' : '/media/css/tinymce.css',
138 #FILE_PROTECTION_METHOD = 'basic'