Tinymce
[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
1637bccc 9# Host for sending e-mail.
10EMAIL_HOST = 'smtp-sortant.ca.auf.org'
11EMAIL_PORT = 587
12EMAIL_HOST_USER = 'marc.nachin@auf.org'
13EMAIL_HOST_PASSWORD = 'coucou26'
14EMAIL_USE_TLS = True
7751bc47
OL
15SERVER_EMAIL = 'ne-pas-repondre@auf.org'
16EMAIL_SUBJECT_PREFIX = '[IFGU - %s] ' % socket.gethostname()
17ADMINS = (
18 ('Équipe ARI-SI', 'developpeurs@ca.auf.org'),
19)
20
21MANAGERS = ADMINS
22
23TIME_ZONE = 'America/Montreal'
24
25LANGUAGE_CODE = 'fr-ca'
f73b7c99
OL
26gettext = lambda x: x
27CMS_LANGUAGES = (
28 ('fr', gettext('French')),
29)
7751bc47
OL
30
31PROJECT_ROOT = os.path.dirname(__file__)
32SITE_ROOT = os.path.dirname(PROJECT_ROOT)
33
34MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
35MEDIA_URL = '/media/'
36
37STATIC_ROOT = os.path.join(SITE_ROOT, 'sitestatic')
38STATIC_URL = '/static/'
39STATICFILES_DIRS = (
40 os.path.join(PROJECT_ROOT, 'static'),
41)
42
43ROOT_URLCONF = 'project.urls'
44
45INSTALLED_APPS = (
1637bccc 46 'filebrowser',
7751bc47
OL
47 'admin_tools',
48 'admin_tools.theming',
49 'admin_tools.menu',
50 'admin_tools.dashboard',
51 'django.contrib.auth',
52 'django.contrib.contenttypes',
53 'django.contrib.sessions',
54 'django.contrib.admin',
55 'django.contrib.staticfiles',
f73b7c99 56 'django.contrib.sites',
926ef9f0 57 'django.contrib.sitemaps',
f73b7c99 58 'south',
47a0383d 59 'diaporama',
926ef9f0 60 'article',
1637bccc 61 'newsletter',
f73b7c99
OL
62
63 # django-cms
64 'cms',
65 'mptt',
66 'menus',
7751bc47 67 'south',
f73b7c99 68 'sekizai',
926ef9f0 69 'pagination',
1637bccc 70 'tinymce',
f73b7c99
OL
71
72 # django-cms plugins
73 'cms.plugins.text',
74 'cms.plugins.picture',
75)
76
77MIDDLEWARE_CLASSES = (
78 'django.middleware.common.CommonMiddleware',
79 'django.contrib.sessions.middleware.SessionMiddleware',
80 'django.middleware.csrf.CsrfViewMiddleware',
81 'django.contrib.auth.middleware.AuthenticationMiddleware',
82 'django.contrib.messages.middleware.MessageMiddleware',
83 'cms.middleware.page.CurrentPageMiddleware',
84 'cms.middleware.user.CurrentUserMiddleware',
85 'cms.middleware.toolbar.ToolbarMiddleware',
926ef9f0 86 'pagination.middleware.PaginationMiddleware',
7751bc47
OL
87)
88
89TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_TEMPLATE_CONTEXT_PROCESSORS + (
90 'django.core.context_processors.static',
91 'django.core.context_processors.request',
f73b7c99
OL
92 'cms.context_processors.media',
93 'sekizai.context_processors.sekizai',
926ef9f0 94 'diaporama.context_processors.list_slider',
95 'article.context_processors.list_actu',
7751bc47
OL
96)
97
98
99TEMPLATE_DIRS = (
100 os.path.join(os.path.dirname(__file__), "templates"),
101)
102
103SOUTH_TESTS_MIGRATE = False
104
105ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
106
f73b7c99 107CMS_TEMPLATES = (
47a0383d 108 ('accueil.html', gettext('Page Accueil')),
926ef9f0 109 ('page.html', gettext('Page Texte')),
f73b7c99
OL
110)
111
7751bc47 112from conf import *
1637bccc 113
114TINYMCE_DEFAULT_CONFIG = {
115 'theme': "advanced",
116 'theme_advanced_buttons1' : "formatselect,|,bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,backcolor,|removeformat,visualaid,code,",
117 'theme_advanced_buttons2' : "",
118 'theme_advanced_buttons3' : "",
119 'theme_advanced_statusbar_location' : "bottom",
120 'theme_advanced_toolbar_align' : "left",
121 'width' : "800",
122 'height' : "200",
123 'theme_advanced_resizing' : "true",
124 'custom_undo_redo_levels': 10,
125 'theme_advanced_toolbar_location' : 'top',
126}