premier commit marc
[ifgu.git] / project / settings.py
CommitLineData
7751bc47
OL
1# -*- encoding: utf-8 -*-
2
3import os
4import socket
5from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS as \
6 DEFAULT_TEMPLATE_CONTEXT_PROCESSORS
7
8# Rapports d'erreurs
9SERVER_EMAIL = 'ne-pas-repondre@auf.org'
10EMAIL_SUBJECT_PREFIX = '[IFGU - %s] ' % socket.gethostname()
11ADMINS = (
12 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
13)
14
15MANAGERS = ADMINS
16
17TIME_ZONE = 'America/Montreal'
18
19LANGUAGE_CODE = 'fr-ca'
f73b7c99
OL
20gettext = lambda x: x
21CMS_LANGUAGES = (
22 ('fr', gettext('French')),
23)
7751bc47
OL
24
25PROJECT_ROOT = os.path.dirname(__file__)
26SITE_ROOT = os.path.dirname(PROJECT_ROOT)
27
28MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
29MEDIA_URL = '/media/'
30
31STATIC_ROOT = os.path.join(SITE_ROOT, 'sitestatic')
32STATIC_URL = '/static/'
33STATICFILES_DIRS = (
34 os.path.join(PROJECT_ROOT, 'static'),
35)
36
37ROOT_URLCONF = 'project.urls'
38
39INSTALLED_APPS = (
40 'admin_tools',
41 'admin_tools.theming',
42 'admin_tools.menu',
43 'admin_tools.dashboard',
44 'django.contrib.auth',
45 'django.contrib.contenttypes',
46 'django.contrib.sessions',
47 'django.contrib.admin',
48 'django.contrib.staticfiles',
f73b7c99
OL
49 'django.contrib.sites',
50 'south',
47a0383d 51 'diaporama',
f73b7c99
OL
52
53 # django-cms
54 'cms',
55 'mptt',
56 'menus',
7751bc47 57 'south',
f73b7c99
OL
58 'sekizai',
59
60 # django-cms plugins
61 'cms.plugins.text',
62 'cms.plugins.picture',
63)
64
65MIDDLEWARE_CLASSES = (
66 'django.middleware.common.CommonMiddleware',
67 'django.contrib.sessions.middleware.SessionMiddleware',
68 'django.middleware.csrf.CsrfViewMiddleware',
69 'django.contrib.auth.middleware.AuthenticationMiddleware',
70 'django.contrib.messages.middleware.MessageMiddleware',
71 'cms.middleware.page.CurrentPageMiddleware',
72 'cms.middleware.user.CurrentUserMiddleware',
73 'cms.middleware.toolbar.ToolbarMiddleware',
7751bc47
OL
74)
75
76TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
77 'django.core.context_processors.static',
78 'django.core.context_processors.request',
f73b7c99
OL
79 'cms.context_processors.media',
80 'sekizai.context_processors.sekizai',
7751bc47
OL
81)
82
83
84TEMPLATE_DIRS = (
85 os.path.join(os.path.dirname(__file__), "templates"),
86)
87
88SOUTH_TESTS_MIGRATE = False
89
90ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
91
f73b7c99 92CMS_TEMPLATES = (
47a0383d 93 ('accueil.html', gettext('Page Accueil')),
f73b7c99
OL
94)
95
7751bc47 96from conf import *