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