Newer
Older
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
SITE_ID = 1
INSTALLED_APPS = list(INSTALLED_APPS + (
'cms',
'treebeard',
'menus',
'sekizai',
'djangocms_admin_style',
'django.contrib.messages',
'djangocms_text_ckeditor',
'newsbox_cms',
'myapp_cms',
))
INSTALLED_APPS.remove('myapp')
INSTALLED_APPS = tuple(INSTALLED_APPS)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.admindocs.middleware.XViewMiddleware',
'django.middleware.common.CommonMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.language.LanguageCookieMiddleware',
)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.template.context_processors.tz',
'django.template.context_processors.csrf',
'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
'sekizai.context_processors.sekizai',
'cms.context_processors.cms_settings',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
],
},
},
]
CMS_TEMPLATES = (
('page.html', 'page'),
)
ROOT_URLCONF = 'myapp_cms.urls'
CMS_PLACEHOLDER_CONF = {
'main': {
'name': "Main content",