mise-en-production
[auf_framonde.git] / project / settings / 60-django-cms.py
1 gettext = lambda s: s
2
3 MIDDLEWARE_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
22 TEMPLATE_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 'project.framonde.context_processors.abonnement',
35 'project.framonde.context_processors.archives',
36 ]
37
38 INSTALLED_APPS = ('djangocms_admin_style',) + INSTALLED_APPS
39
40 INSTALLED_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',
58 'cmsplugin_filer_video',
59
60 'djangocms_text_ckeditor',
61 'project.cmsplugin_contact_plus',
62 )
63
64 LANGUAGES = [
65 ('fr', gettext('French')),
66 ]
67 CMS_LANGUAGES = LANGUAGES
68
69 CMS_LANGUAGES = {
70 1: [
71 {
72 'code': 'fr',
73 'name': gettext('Francais'),
74 'public': True,
75 },
76 ],
77 }
78
79
80 CMS_URL_OVERWRITE = True
81 CMS_MENU_TITLE_OVERWRITE = True
82 CMS_REDIRECTS = True
83 CMS_SOFTROOT = True
84 CMS_SHOW_START_DATE = True
85 CMS_SHOW_END_DATE = True
86 CMS_SEO_FIELDS = True
87 CMS_PERMISSION = True
88 CMS_PUBLIC_FOR = 'all'
89
90 TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
91
92 THUMBNAIL_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
117 CMS_TEMPLATES = (
118 ('page.html', ('Page Texte')),
119 )
120
121 META_SITE_PROTOCOL = 'http'
122 META_USE_SITES = False
123 META_SITE_DOMAIN = 'framonde.auf.org'
124
125 BLOG_ENABLE_COMMENTS = False
126 BLOG_USE_PLACEHOLDER = False