boostrap
[ifgu.git] / project / settings.py
1 # -*- encoding: utf-8 -*-
2
3 import os
4 import socket
5 from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as \
6 DEFAULT_TEMPLATE_CONTEXT_PROCESSORS
7
8 # Rapports d'erreurs
9 SERVER_EMAIL = 'ne-pas-repondre@auf.org'
10 EMAIL_SUBJECT_PREFIX = '[IFGU - %s] ' % socket.gethostname()
11 ADMINS = (
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
13 )
14
15 MANAGERS = ADMINS
16
17 TIME_ZONE = 'America/Montreal'
18
19 LANGUAGE_CODE = 'fr-ca'
20
21 PROJECT_ROOT = os.path.dirname(__file__)
22 SITE_ROOT = os.path.dirname(PROJECT_ROOT)
23
24 MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
25 MEDIA_URL = '/media/'
26
27 STATIC_ROOT = os.path.join(SITE_ROOT, 'sitestatic')
28 STATIC_URL = '/static/'
29 STATICFILES_DIRS = (
30 os.path.join(PROJECT_ROOT, 'static'),
31 )
32
33 ROOT_URLCONF = 'project.urls'
34
35 INSTALLED_APPS = (
36 'admin_tools',
37 'admin_tools.theming',
38 'admin_tools.menu',
39 'admin_tools.dashboard',
40 'django.contrib.auth',
41 'django.contrib.contenttypes',
42 'django.contrib.sessions',
43 'django.contrib.admin',
44 'django.contrib.staticfiles',
45 'south',
46 )
47
48 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
49 'django.core.context_processors.static',
50 'django.core.context_processors.request',
51 )
52
53
54 TEMPLATE_DIRS = (
55 os.path.join(os.path.dirname(__file__), "templates"),
56 )
57
58 SOUTH_TESTS_MIGRATE = False
59
60 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
61
62 from conf import *