django-cms
[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 gettext = lambda x: x
21 CMS_LANGUAGES = (
22 ('fr', gettext('French')),
23 )
24
25 PROJECT_ROOT = os.path.dirname(__file__)
26 SITE_ROOT = os.path.dirname(PROJECT_ROOT)
27
28 MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
29 MEDIA_URL = '/media/'
30
31 STATIC_ROOT = os.path.join(SITE_ROOT, 'sitestatic')
32 STATIC_URL = '/static/'
33 STATICFILES_DIRS = (
34 os.path.join(PROJECT_ROOT, 'static'),
35 )
36
37 ROOT_URLCONF = 'project.urls'
38
39 INSTALLED_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',
49 'django.contrib.sites',
50 'south',
51
52 # django-cms
53 'cms',
54 'mptt',
55 'menus',
56 'south',
57 'sekizai',
58
59 # django-cms plugins
60 'cms.plugins.text',
61 'cms.plugins.picture',
62 )
63
64 MIDDLEWARE_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',
73 )
74
75 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
76 'django.core.context_processors.static',
77 'django.core.context_processors.request',
78 'cms.context_processors.media',
79 'sekizai.context_processors.sekizai',
80 )
81
82
83 TEMPLATE_DIRS = (
84 os.path.join(os.path.dirname(__file__), "templates"),
85 )
86
87 SOUTH_TESTS_MIGRATE = False
88
89 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
90
91 CMS_TEMPLATES = (
92 ('cms/vide.html', u'Gabarit vide'),
93 )
94
95 from conf import *