Fix bug css
[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 'django.contrib.sitemaps',
51 'south',
52 'diaporama',
53 'article',
54
55 # django-cms
56 'cms',
57 'mptt',
58 'menus',
59 'south',
60 'sekizai',
61 'pagination',
62
63 # django-cms plugins
64 'cms.plugins.text',
65 'cms.plugins.picture',
66 )
67
68 MIDDLEWARE_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',
77 'pagination.middleware.PaginationMiddleware',
78 )
79
80 TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
81 'django.core.context_processors.static',
82 'django.core.context_processors.request',
83 'cms.context_processors.media',
84 'sekizai.context_processors.sekizai',
85 'diaporama.context_processors.list_slider',
86 'article.context_processors.list_actu',
87 )
88
89
90 TEMPLATE_DIRS = (
91 os.path.join(os.path.dirname(__file__), "templates"),
92 )
93
94 SOUTH_TESTS_MIGRATE = False
95
96 ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
97
98 CMS_TEMPLATES = (
99 ('accueil.html', gettext('Page Accueil')),
100 ('page.html', gettext('Page Texte')),
101 )
102
103 from conf import *