build
[semainetech_django.git] / project / settings.py
1 # -*- encoding: utf-8 -*-
2
3 import os
4 import socket
5 from conf import *
6
7 PROJET_TITRE = "Semaine Tech"
8
9 # Rapports d'erreurs
10 EMAIL_SUBJECT_PREFIX = '[SemaineTech - %s] ' % socket.gethostname()
11 ADMINS = (
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
13 )
14
15 MANAGERS = ADMINS
16
17 TIME_ZONE = 'Canada/Montreal'
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 # Don't share this with anybody.
36 SECRET_KEY = '7a-2ngwcp#rlilyzp(k^6a446ekcu_etqcxuk-=5ypgsv0x(+l'
37
38 MIDDLEWARE_CLASSES = (
39 'django.middleware.common.CommonMiddleware',
40 'django.contrib.sessions.middleware.SessionMiddleware',
41 'django.contrib.auth.middleware.AuthenticationMiddleware',
42 'django.middleware.doc.XViewMiddleware',
43 )
44
45 ROOT_URLCONF = 'project.urls'
46
47
48 INSTALLED_APPS = (
49 'auf.django.skin',
50 'admin_tools',
51 'admin_tools.theming',
52 'admin_tools.menu',
53 'admin_tools.dashboard',
54 'django.contrib.auth',
55 'django.contrib.contenttypes',
56 'django.contrib.sessions',
57 'django.contrib.admin',
58 'south',
59 )
60
61 TEMPLATE_CONTEXT_PROCESSORS = (
62 'django.core.context_processors.auth',
63 'django.core.context_processors.debug',
64 'django.core.context_processors.i18n',
65 'django.core.context_processors.media',
66 'django.contrib.messages.context_processors.messages',
67 'django.core.context_processors.request',
68 'auf.django.skin.context_processors.auf',
69 )
70
71
72 TEMPLATE_LOADERS = (
73 'django.template.loaders.filesystem.load_template_source',
74 'django.template.loaders.app_directories.load_template_source',
75 )
76
77 TEMPLATE_DIRS = (
78 os.path.join(os.path.dirname(__file__), "templates"),
79 )
80
81 SOUTH_TESTS_MIGRATE = False
82
83 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
84