[#2398] Sélectionner la valeur point par défaut s'il y a lieu
[auf_rh_dae.git] / project / settings.py
... / ...
CommitLineData
1# -*- encoding: utf-8 -*-
2
3import os
4import socket
5from conf import *
6
7PROJET_TITRE = "Demande d'autorisation d'embauche"
8
9# Rapports d'erreurs
10EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
11ADMINS = (
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
13)
14
15MANAGERS = ADMINS
16
17TIME_ZONE = 'Canada/Montreal'
18DATE_FORMAT = 'd F Y'
19LANGUAGE_CODE = 'fr-ca'
20
21# Absolute path to the directory that holds media.
22# Example: "/home/media/media.lawrence.com/"
23MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
24PRIVE_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media_prive')
25
26# URL that handles the media served from MEDIA_ROOT. Make sure to use a
27# trailing slash if there is a path component (optional in other cases).
28# Examples: "http://media.lawrence.com", "http://example.com/media/"
29MEDIA_URL = '/media/'
30PRIVE_MEDIA_URL = '/dae/prive/'
31
32
33# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
34# trailing slash.
35# Examples: "http://foo.com/media/", "/media/".
36ADMIN_MEDIA_PREFIX = '/media/django/'
37
38# Don't share this with anybody.
39SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
40
41MIDDLEWARE_CLASSES = (
42 'django.middleware.common.CommonMiddleware',
43 'django.contrib.sessions.middleware.SessionMiddleware',
44 'django.contrib.messages.middleware.MessageMiddleware',
45 'django.contrib.auth.middleware.AuthenticationMiddleware',
46 'django.middleware.doc.XViewMiddleware',
47 'reversion.middleware.RevisionMiddleware',
48)
49
50ROOT_URLCONF = 'project.urls'
51
52
53INSTALLED_APPS = (
54 'auf.django.skin',
55 'admin_tools',
56 'admin_tools.theming',
57 'admin_tools.menu',
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',
65 'ajax_select',
66 'south',
67 'reversion',
68 'auf.django.workflow',
69 'auf.django.permissions',
70 'project.rh_v1',
71 'project.dae',
72)
73
74TEMPLATE_CONTEXT_PROCESSORS = (
75 'django.core.context_processors.auth',
76 'django.core.context_processors.debug',
77 'django.core.context_processors.i18n',
78 'django.core.context_processors.media',
79 'django.contrib.messages.context_processors.messages',
80 'django.core.context_processors.request',
81 'auf.django.skin.context_processors.auf',
82 'project.context_processors.utilisateur',
83 'project.context_processors.user_is_admin',
84)
85
86AUTHENTICATION_BACKENDS = (
87 'auf.django.auth.backends.CascadeBackend',
88 'auf.django.permissions.backends.AuthenticationBackend',
89)
90LOGIN_URL = "/connexion"
91LOGIN_REDIRECT_URL = "/"
92
93TEMPLATE_LOADERS = (
94 'django.template.loaders.filesystem.load_template_source',
95 'django.template.loaders.app_directories.load_template_source',
96)
97
98TEMPLATE_DIRS = (
99 os.path.join(os.path.dirname(__file__), "templates"),
100)
101
102
103ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
104
105AJAX_LOOKUP_CHANNELS = {
106 'responsables' : ('dae.catalogues', 'Responsable'),
107 'dossiers' : ('dae.catalogues', 'Dossier'),
108 'postes' : ('dae.catalogues', 'Poste'),
109}
110
111# django-sendfile
112
113SENDFILE_BACKEND = 'sendfile.backends.simple'
114