admin
[auf_contrats.git] / auf_contrats / settings.py
1 # -*- encoding: utf-8 -*-
2
3 import os
4
5 from conf import *
6
7 ADMINS = (
8 # ('Your Name', 'your_email@domain.com'),
9 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
10 )
11
12 USERS_AS_STAFF = ('olivier.larcheveque@auf.org', )
13 SUPERVISORS = ('odette.tremblay@auf.org', )
14
15 MANAGERS = ADMINS
16
17 TIME_ZONE = 'America/Chicago'
18
19 LANGUAGE_CODE = 'fr-ca'
20
21 # Absolute path to the directory that holds media.
22 # Example: "/home/media/media.lawrence.com/"
23 MEDIA_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/"
28 MEDIA_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/".
33 ADMIN_MEDIA_PREFIX = '/media/django/'
34
35 MIDDLEWARE_CLASSES = (
36 'django.middleware.csrf.CsrfViewMiddleware',
37 'django.middleware.csrf.CsrfResponseMiddleware',
38 'django.middleware.cache.UpdateCacheMiddleware',
39 'django.middleware.common.CommonMiddleware',
40 'django.middleware.cache.FetchFromCacheMiddleware',
41 'django.contrib.sessions.middleware.SessionMiddleware',
42 'django.contrib.auth.middleware.AuthenticationMiddleware',
43 'django.middleware.doc.XViewMiddleware',
44 )
45
46 ROOT_URLCONF = 'auf_contrats.urls'
47
48
49 INSTALLED_APPS = (
50 'django.contrib.auth',
51 'django.contrib.contenttypes',
52 'django.contrib.sessions',
53 'django.contrib.admin',
54 'contrats',
55 'backport',
56 )
57
58 AUTHENTICATION_BACKENDS = (
59 'auf.django.auth.backends.CascadeBackend',
60 'django.contrib.auth.backends.ModelBackend',
61 )
62
63 TEMPLATE_LOADERS = (
64 'django.template.loaders.filesystem.load_template_source',
65 'django.template.loaders.app_directories.load_template_source',
66 )
67
68 TEMPLATE_DIRS = [
69 os.path.join(os.path.dirname(__file__), "templates"),
70 ]
71