cms: ajout de plugins manquant
[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',
8 'auf.django.piwik.middleware.TrackMiddleware',
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",
34 'framonde.context_processors.abonnement',
35 'framonde.context_processors.archives',
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',
6837e829
PH
61)
62
63LANGUAGES = [
64 ('fr', gettext('French')),
65]
66CMS_LANGUAGES = LANGUAGES
67
68CMS_LANGUAGES = {
69 1: [
70 {
71 'code': 'fr',
72 'name': gettext('Francais'),
73 'public': True,
74 },
75 ],
76}
77
78
79CMS_URL_OVERWRITE = True
80CMS_MENU_TITLE_OVERWRITE = True
81CMS_REDIRECTS = True
82CMS_SOFTROOT = True
83CMS_SHOW_START_DATE = True
84CMS_SHOW_END_DATE = True
85CMS_SEO_FIELDS = True
86CMS_PERMISSION = True
87CMS_PUBLIC_FOR = 'all'
88
89TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
90
91THUMBNAIL_PROCESSORS = (
92 'easy_thumbnails.processors.colorspace',
93 'easy_thumbnails.processors.autocrop',
94 #'easy_thumbnails.processors.scale_and_crop',
95 'filer.thumbnail_processors.scale_and_crop_with_subject_location',
96 'easy_thumbnails.processors.filters',
97)
98
99# MIGRATION_MODULES = {
100# 'cms': 'cms.migrations_django',
101# 'menus': 'menus.migrations_django',
102# 'filer': 'filer.migrations_django',
103# 'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
104# 'cmsplugin_filer_file': 'cmsplugin_filer_file.migrations_django',
105# 'cmsplugin_filer_folder': 'cmsplugin_filer_folder.migrations_django',
106# 'cmsplugin_filer_link': 'cmsplugin_filer_link.migrations_django',
107# 'cmsplugin_filer_teaser': 'cmsplugin_filer_teaser.migrations_django',
108# 'cmsplugin_filer_utils': 'cmsplugin_filer_utils.migrations_django',
109# 'cmsplugin_filer_video': 'cmsplugin_filer_video.migrations_django',
110# 'djangocms_inherit': 'djangocms_inherit.migrations_django',
111# 'djangocms_column': 'djangocms_column.migrations_django',
112# 'djangocms_style': 'djangocms_style.migrations_django',
113# 'djangocms_text_ckeditor': 'djangocms_text_ckeditor.migrations_django',
114#}
115
116CMS_TEMPLATES = (
117 ('page.html', ('Page Texte')),
118)
119
120META_SITE_PROTOCOL = 'http'
121META_USE_SITES = False
122META_SITE_DOMAIN = 'framonde.auf.org'
123
124BLOG_ENABLE_COMMENTS = False
125BLOG_USE_PLACEHOLDER = False