django-cms
[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',
51
52 # django-cms
53 'cms',
54 'mptt',
55 'menus',
7751bc47 56 'south',
f73b7c99
OL
57 'sekizai',
58
59 # django-cms plugins
60 'cms.plugins.text',
61 'cms.plugins.picture',
62)
63
64MIDDLEWARE_CLASSES = (
65 'django.middleware.common.CommonMiddleware',
66 'django.contrib.sessions.middleware.SessionMiddleware',
67 'django.middleware.csrf.CsrfViewMiddleware',
68 'django.contrib.auth.middleware.AuthenticationMiddleware',
69 'django.contrib.messages.middleware.MessageMiddleware',
70 'cms.middleware.page.CurrentPageMiddleware',
71 'cms.middleware.user.CurrentUserMiddleware',
72 'cms.middleware.toolbar.ToolbarMiddleware',
7751bc47
OL
73)
74
75TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
76 'django.core.context_processors.static',
77 'django.core.context_processors.request',
f73b7c99
OL
78 'cms.context_processors.media',
79 'sekizai.context_processors.sekizai',
7751bc47
OL
80)
81
82
83TEMPLATE_DIRS = (
84 os.path.join(os.path.dirname(__file__), "templates"),
85)
86
87SOUTH_TESTS_MIGRATE = False
88
89ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
90
f73b7c99
OL
91CMS_TEMPLATES = (
92 ('cms/vide.html', u'Gabarit vide'),
93)
94
7751bc47 95from conf import *