fix variable manquante
[auf_rh_dae.git] / project / settings.py
1 # -*- encoding: utf-8 -*-
2
3 import os
4 import socket
5 from conf import *
6
7 PROJET_TITRE = "Demande d'autorisation d'embauche"
8
9 # Rapports d'erreurs
10 EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
11 ADMINS = (
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
13 )
14
15 MANAGERS = ADMINS
16 USERS_AS_STAFF = True
17
18 TIME_ZONE = 'Canada/Montreal'
19
20 LANGUAGE_CODE = 'fr-ca'
21
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
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/"
29 MEDIA_URL = '/media/'
30
31 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
32 # trailing slash.
33 # Examples: "http://foo.com/media/", "/media/".
34 ADMIN_MEDIA_PREFIX = '/media/django/'
35
36 # Don't share this with anybody.
37 SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
38
39 MIDDLEWARE_CLASSES = (
40 'django.middleware.common.CommonMiddleware',
41 'django.contrib.sessions.middleware.SessionMiddleware',
42 'django.contrib.auth.middleware.AuthenticationMiddleware',
43 'django.middleware.doc.XViewMiddleware',
44 )
45
46 ROOT_URLCONF = 'project.urls'
47
48
49 INSTALLED_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',
60 'project.rh_v1',
61 'project.dae',
62 )
63
64 TEMPLATE_CONTEXT_PROCESSORS = (
65 'django.core.context_processors.auth',
66 'django.core.context_processors.debug',
67 'django.core.context_processors.i18n',
68 'django.core.context_processors.media',
69 'django.contrib.messages.context_processors.messages',
70 'django.core.context_processors.request',
71 'auf.django.skin.context_processors.auf',
72 )
73
74 AUTHENTICATION_BACKENDS = (
75 'auf.django.auth.backends.CascadeBackend',
76 )
77
78 TEMPLATE_LOADERS = (
79 'django.template.loaders.filesystem.load_template_source',
80 'django.template.loaders.app_directories.load_template_source',
81 )
82
83 TEMPLATE_DIRS = (
84 os.path.join(os.path.dirname(__file__), "templates"),
85 )
86
87
88 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'