historique
[auf_rh_dae.git] / project / settings.py
CommitLineData
5e23d90d
OL
1# -*- encoding: utf-8 -*-
2
3import os
4import socket
5from conf import *
6
3a2f12b2
OL
7PROJET_TITRE = "Demande d'autorisation d'embauche"
8
5e23d90d
OL
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'
18
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')
24
25# URL that handles the media served from MEDIA_ROOT. Make sure to use a
26# trailing slash if there is a path component (optional in other cases).
27# Examples: "http://media.lawrence.com", "http://example.com/media/"
28MEDIA_URL = '/media/'
29
30# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
31# trailing slash.
32# Examples: "http://foo.com/media/", "/media/".
21f749ab 33ADMIN_MEDIA_PREFIX = '/media/django/'
5e23d90d
OL
34
35# Don't share this with anybody.
36SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
37
38MIDDLEWARE_CLASSES = (
39 'django.middleware.common.CommonMiddleware',
40 'django.contrib.sessions.middleware.SessionMiddleware',
41 'django.contrib.auth.middleware.AuthenticationMiddleware',
42 'django.middleware.doc.XViewMiddleware',
17353922 43 'reversion.middleware.RevisionMiddleware',
5e23d90d
OL
44)
45
46ROOT_URLCONF = 'project.urls'
47
48
49INSTALLED_APPS = (
50 'auf.django.skin',
51 'admin_tools',
52 'admin_tools.theming',
53 'admin_tools.menu',
54 'admin_tools.dashboard',
55 'django.contrib.auth',
56 'django.contrib.contenttypes',
57 'django.contrib.sessions',
58 'django.contrib.admin',
59 'south',
17353922
OL
60 'reversion',
61 #'project.rh',
785c03cc 62 'project.rh_v1',
17353922 63 'project.dae',
5e23d90d
OL
64)
65
66TEMPLATE_CONTEXT_PROCESSORS = (
67 'django.core.context_processors.auth',
68 'django.core.context_processors.debug',
69 'django.core.context_processors.i18n',
70 'django.core.context_processors.media',
71 'django.contrib.messages.context_processors.messages',
72 'django.core.context_processors.request',
73 'auf.django.skin.context_processors.auf',
e993f3dc 74 'project.context_processors.utilisateur',
75 'project.context_processors.user_is_admin',
5e23d90d
OL
76)
77
8846b99e
OL
78AUTHENTICATION_BACKENDS = (
79 'auf.django.auth.backends.CascadeBackend',
80)
5e23d90d
OL
81
82TEMPLATE_LOADERS = (
83 'django.template.loaders.filesystem.load_template_source',
84 'django.template.loaders.app_directories.load_template_source',
85)
86
87TEMPLATE_DIRS = (
88 os.path.join(os.path.dirname(__file__), "templates"),
89)
90
91
8846b99e 92ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'