Merge branch 'dev' of ssh://git.auf/auf_rh_dae into dev
[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')
36341125 24PRIVE_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media_prive')
5e23d90d
OL
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/'
36341125
OL
30PRIVE_MEDIA_URL = '/prive/'
31
5e23d90d
OL
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/".
21f749ab 36ADMIN_MEDIA_PREFIX = '/media/django/'
5e23d90d
OL
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.auth.middleware.AuthenticationMiddleware',
45 'django.middleware.doc.XViewMiddleware',
17353922 46 'reversion.middleware.RevisionMiddleware',
5e23d90d
OL
47)
48
49ROOT_URLCONF = 'project.urls'
50
51
52INSTALLED_APPS = (
53 'auf.django.skin',
54 'admin_tools',
55 'admin_tools.theming',
56 'admin_tools.menu',
57 'admin_tools.dashboard',
58 'django.contrib.auth',
59 'django.contrib.contenttypes',
60 'django.contrib.sessions',
61 'django.contrib.admin',
62 'south',
17353922 63 'reversion',
433c14c6 64 'project.rh',
785c03cc 65 'project.rh_v1',
17353922 66 'project.dae',
5e23d90d
OL
67)
68
69TEMPLATE_CONTEXT_PROCESSORS = (
70 'django.core.context_processors.auth',
71 'django.core.context_processors.debug',
72 'django.core.context_processors.i18n',
73 'django.core.context_processors.media',
74 'django.contrib.messages.context_processors.messages',
75 'django.core.context_processors.request',
76 'auf.django.skin.context_processors.auf',
e993f3dc 77 'project.context_processors.utilisateur',
78 'project.context_processors.user_is_admin',
5e23d90d
OL
79)
80
8846b99e
OL
81AUTHENTICATION_BACKENDS = (
82 'auf.django.auth.backends.CascadeBackend',
83)
5e23d90d
OL
84
85TEMPLATE_LOADERS = (
86 'django.template.loaders.filesystem.load_template_source',
87 'django.template.loaders.app_directories.load_template_source',
88)
89
90TEMPLATE_DIRS = (
91 os.path.join(os.path.dirname(__file__), "templates"),
92)
93
94
8846b99e 95ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'