Fix bug css
[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 49 'django.contrib.sites',
926ef9f0 50 'django.contrib.sitemaps',
f73b7c99 51 'south',
47a0383d 52 'diaporama',
926ef9f0 53 'article',
f73b7c99
OL
54
55 # django-cms
56 'cms',
57 'mptt',
58 'menus',
7751bc47 59 'south',
f73b7c99 60 'sekizai',
926ef9f0 61 'pagination',
f73b7c99
OL
62
63 # django-cms plugins
64 'cms.plugins.text',
65 'cms.plugins.picture',
66)
67
68MIDDLEWARE_CLASSES = (
69 'django.middleware.common.CommonMiddleware',
70 'django.contrib.sessions.middleware.SessionMiddleware',
71 'django.middleware.csrf.CsrfViewMiddleware',
72 'django.contrib.auth.middleware.AuthenticationMiddleware',
73 'django.contrib.messages.middleware.MessageMiddleware',
74 'cms.middleware.page.CurrentPageMiddleware',
75 'cms.middleware.user.CurrentUserMiddleware',
76 'cms.middleware.toolbar.ToolbarMiddleware',
926ef9f0 77 'pagination.middleware.PaginationMiddleware',
7751bc47
OL
78)
79
80TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
81 'django.core.context_processors.static',
82 'django.core.context_processors.request',
f73b7c99
OL
83 'cms.context_processors.media',
84 'sekizai.context_processors.sekizai',
926ef9f0 85 'diaporama.context_processors.list_slider',
86 'article.context_processors.list_actu',
7751bc47
OL
87)
88
89
90TEMPLATE_DIRS = (
91 os.path.join(os.path.dirname(__file__), "templates"),
92)
93
94SOUTH_TESTS_MIGRATE = False
95
96ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
97
f73b7c99 98CMS_TEMPLATES = (
47a0383d 99 ('accueil.html', gettext('Page Accueil')),
926ef9f0 100 ('page.html', gettext('Page Texte')),
f73b7c99
OL
101)
102
7751bc47 103from conf import *