Ajout d'un menu, et correction des liens du breadcrumbs
[auf_rh_dae.git] / project / settings.py
... / ...
CommitLineData
1# -*- encoding: utf-8 -*-
2
3import os
4import socket
5from conf import *
6
7
8PROJET_TITRE = "Ressources humaines"
9
10# Rapports d'erreurs
11EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
12ADMINS = (
13 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
14)
15
16MANAGERS = ADMINS
17
18TIME_ZONE = 'Canada/Montreal'
19DATE_FORMAT = 'j F Y'
20LANGUAGE_CODE = 'fr-ca'
21
22# Absolute path to the directory that holds media.
23# Example: "/home/media/media.lawrence.com/"
24MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
25PRIVE_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media_prive')
26
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/"
30MEDIA_URL = '/media/'
31PRIVE_MEDIA_URL = '/dae/prive/'
32OE_PRIVE_MEDIA_URL = '/recrutement/prive/'
33
34
35# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
36# trailing slash.
37# Examples: "http://foo.com/media/", "/media/".
38ADMIN_MEDIA_PREFIX = '/media/django/'
39
40# Don't share this with anybody.
41SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
42
43MIDDLEWARE_CLASSES = (
44 'django.middleware.common.CommonMiddleware',
45 'django.contrib.sessions.middleware.SessionMiddleware',
46 'django.contrib.messages.middleware.MessageMiddleware',
47 'django.contrib.auth.middleware.AuthenticationMiddleware',
48 'django.middleware.doc.XViewMiddleware',
49 'reversion.middleware.RevisionMiddleware',
50)
51
52ROOT_URLCONF = 'project.urls'
53
54INSTALLED_APPS = (
55 'auf.django.skin',
56 'admin_tools',
57 'admin_tools.theming',
58 'admin_tools.menu',
59 'admin_tools.dashboard',
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.messages',
63 'django.contrib.sessions',
64 'django.contrib.admin',
65 'django_qbe',
66 'auf.django.emploi',
67 'auf.django.admingroup',
68 'ajax_select',
69 'south',
70 'reversion',
71 'project.rh',
72 'auf.django.workflow',
73 'project.rh_v1',
74 'project.dae',
75 'alphafilter',
76 'project.recrutement',
77 'form_utils',
78 'tinymce',
79 'captcha',
80)
81
82TEMPLATE_CONTEXT_PROCESSORS = (
83 'django.core.context_processors.auth',
84 'django.core.context_processors.debug',
85 'django.core.context_processors.i18n',
86 'django.core.context_processors.media',
87 'django.contrib.messages.context_processors.messages',
88 'django.core.context_processors.request',
89 'auf.django.skin.context_processors.auf',
90 #'project.context_processors.utilisateur',
91 'project.context_processors.this_employe',
92 'project.context_processors.user_is_admin',
93 'dae.context_processors.user_in_dae_groupes',
94 'recrutement.context_processors.user_in_recrutement_groupes',
95)
96
97AUTHENTICATION_BACKENDS = (
98 'auf.django.auth.backends.CascadeBackend',
99)
100LOGIN_URL = "/connexion"
101LOGIN_REDIRECT_URL = "/"
102
103TEMPLATE_LOADERS = (
104 'django.template.loaders.filesystem.load_template_source',
105 'django.template.loaders.app_directories.load_template_source',
106)
107
108TEMPLATE_DIRS = (
109 os.path.join(os.path.dirname(__file__), "templates"),
110)
111
112
113ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
114ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'project.dashboard.CustomAppIndexDashboard'
115ADMIN_TOOLS_MENU = 'project.menu.CustomMenu'
116
117AJAX_LOOKUP_CHANNELS = {
118 'responsables' : ('dae.catalogues', 'Responsable'),
119 'dossiers' : ('dae.catalogues', 'Dossier'),
120 'postes' : ('dae.catalogues', 'Poste'),
121}
122
123TINYMCE_DEFAULT_CONFIG = {
124'theme': "advanced",
125'plugins':"paste",
126'theme_advanced_buttons1' : "bold,italic,underline,|,formatselect,|,bullist,numlist,|,undo,redo,|,link,unlink",
127'theme_advanced_buttons2' : "",
128'theme_advanced_buttons3' : "",
129'theme_advanced_statusbar_location' : "bottom",
130'theme_advanced_toolbar_align' : "left",
131'theme_advanced_styles' : "Titre=titre;Sous-titre=sous-titre;Normal=normal",
132'width' : "800",
133'height' : "200",
134'theme_advanced_resizing' : "true",
135'custom_undo_redo_levels': 10,
136'theme_advanced_toolbar_location' : 'top',
137'inline_styles' : 'false',
138'paste_use_dialog' : 'false',
139'paste_auto_cleanup_on_paste' : 'true',
140'paste_convert_headers_to_strong' : 'false',
141'paste_strip_class_attributes' : 'all',
142'paste_remove_spans' : 'true',
143'paste_remove_styles' : 'true',
144'content_css' : '/media/css/tinymce.css',
145}
146
147# django-sendfile
148
149SENDFILE_BACKEND = 'sendfile.backends.simple'