mise-en-production
[auf_framonde.git] / project / settings / 60-django-cms.py
CommitLineData
6837e829
PH
1gettext = lambda s: s
2
3MIDDLEWARE_CLASSES = [
4 'django.middleware.cache.UpdateCacheMiddleware',
5 'django.contrib.sessions.middleware.SessionMiddleware',
6 'django.middleware.csrf.CsrfViewMiddleware',
7 'django.contrib.auth.middleware.AuthenticationMiddleware',
07419fc5 8# 'auf.django.piwik.middleware.TrackMiddleware',
6837e829
PH
9 'django.contrib.messages.middleware.MessageMiddleware',
10 'django.middleware.locale.LocaleMiddleware',
11 'django.middleware.doc.XViewMiddleware',
12 'django.middleware.common.CommonMiddleware',
13 'django.middleware.clickjacking.XFrameOptionsMiddleware',
14 'cms.middleware.user.CurrentUserMiddleware',
15 'cms.middleware.page.CurrentPageMiddleware',
16 'cms.middleware.toolbar.ToolbarMiddleware',
17 'cms.middleware.language.LanguageCookieMiddleware',
18 'pagination.middleware.PaginationMiddleware',
19 'django.middleware.cache.FetchFromCacheMiddleware',
20]
21
22TEMPLATE_CONTEXT_PROCESSORS = [
23 "django.contrib.auth.context_processors.auth",
24 "django.contrib.messages.context_processors.messages",
25 "django.core.context_processors.i18n",
26 "django.core.context_processors.debug",
27 "django.core.context_processors.request",
28 "django.core.context_processors.media",
29 'django.core.context_processors.csrf',
30 "django.core.context_processors.tz",
31 "sekizai.context_processors.sekizai",
32 "django.core.context_processors.static",
33 "cms.context_processors.cms_settings",
07419fc5
PH
34 'project.framonde.context_processors.abonnement',
35 'project.framonde.context_processors.archives',
6837e829
PH
36]
37
38INSTALLED_APPS = ('djangocms_admin_style',) + INSTALLED_APPS
39
40INSTALLED_APPS += (
41 # CMS related apps
42 'cms',
43 'treebeard',
44 'menus',
45 'django_extensions',
46
47 'reversion',
48 'sekizai',
49 'filer',
50 'easy_thumbnails',
51
52 'cmsplugin_filer_file',
53 'cmsplugin_filer_folder',
54 'cmsplugin_filer_image',
55 'cmsplugin_filer_link',
56 'cmsplugin_filer_teaser',
57 'cmsplugin_filer_utils',
3843bcad
PH
58 'cmsplugin_filer_video',
59
60 'djangocms_text_ckeditor',
07419fc5 61 'project.cmsplugin_contact_plus',
6837e829
PH
62)
63
64LANGUAGES = [
65 ('fr', gettext('French')),
66]
67CMS_LANGUAGES = LANGUAGES
68
69CMS_LANGUAGES = {
70 1: [
71 {
72 'code': 'fr',
73 'name': gettext('Francais'),
74 'public': True,
75 },
76 ],
77}
78
79
80CMS_URL_OVERWRITE = True
81CMS_MENU_TITLE_OVERWRITE = True
82CMS_REDIRECTS = True
83CMS_SOFTROOT = True
84CMS_SHOW_START_DATE = True
85CMS_SHOW_END_DATE = True
86CMS_SEO_FIELDS = True
87CMS_PERMISSION = True
88CMS_PUBLIC_FOR = 'all'
89
90TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
91
92THUMBNAIL_PROCESSORS = (
93 'easy_thumbnails.processors.colorspace',
94 'easy_thumbnails.processors.autocrop',
95 #'easy_thumbnails.processors.scale_and_crop',
96 'filer.thumbnail_processors.scale_and_crop_with_subject_location',
97 'easy_thumbnails.processors.filters',
98)
99
100# MIGRATION_MODULES = {
101# 'cms': 'cms.migrations_django',
102# 'menus': 'menus.migrations_django',
103# 'filer': 'filer.migrations_django',
104# 'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
105# 'cmsplugin_filer_file': 'cmsplugin_filer_file.migrations_django',
106# 'cmsplugin_filer_folder': 'cmsplugin_filer_folder.migrations_django',
107# 'cmsplugin_filer_link': 'cmsplugin_filer_link.migrations_django',
108# 'cmsplugin_filer_teaser': 'cmsplugin_filer_teaser.migrations_django',
109# 'cmsplugin_filer_utils': 'cmsplugin_filer_utils.migrations_django',
110# 'cmsplugin_filer_video': 'cmsplugin_filer_video.migrations_django',
111# 'djangocms_inherit': 'djangocms_inherit.migrations_django',
112# 'djangocms_column': 'djangocms_column.migrations_django',
113# 'djangocms_style': 'djangocms_style.migrations_django',
114# 'djangocms_text_ckeditor': 'djangocms_text_ckeditor.migrations_django',
115#}
116
117CMS_TEMPLATES = (
118 ('page.html', ('Page Texte')),
119)
120
121META_SITE_PROTOCOL = 'http'
122META_USE_SITES = False
123META_SITE_DOMAIN = 'framonde.auf.org'
124
125BLOG_ENABLE_COMMENTS = False
126BLOG_USE_PLACEHOLDER = False