2015-05-01 23:30:30 +00:00
|
|
|
"""
|
2015-06-10 19:16:08 +00:00
|
|
|
Copyright 2015 ungleich.
|
2015-05-01 23:30:30 +00:00
|
|
|
"""
|
|
|
|
|
2015-05-21 02:57:22 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2015-05-01 23:30:30 +00:00
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
|
|
import os
|
2015-05-21 04:38:22 +00:00
|
|
|
import logging
|
2015-05-13 23:24:40 +00:00
|
|
|
import django.db.backends.postgresql_psycopg2
|
2015-05-23 06:33:35 +00:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-05-21 02:57:22 +00:00
|
|
|
gettext = lambda s: s
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
2015-05-01 23:30:30 +00:00
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
2015-05-21 05:33:10 +00:00
|
|
|
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-07-30 17:07:29 +00:00
|
|
|
|
2015-05-31 02:29:49 +00:00
|
|
|
ADMINS = (
|
|
|
|
('Nico Schottelius', 'nico.schottelius@ungleich.ch'),
|
|
|
|
)
|
2015-07-30 17:07:29 +00:00
|
|
|
# ('Sanghee Kim', 'sanghee.kim@ungleich.ch'),
|
|
|
|
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
2015-05-31 02:29:49 +00:00
|
|
|
|
2015-05-21 07:21:08 +00:00
|
|
|
SITE_ID = 1
|
2015-05-21 04:38:22 +00:00
|
|
|
|
2015-05-21 05:33:10 +00:00
|
|
|
APP_ROOT_ENDPOINT = "/"
|
|
|
|
|
2015-05-21 05:34:24 +00:00
|
|
|
LOGIN_URL = None
|
|
|
|
LOGOUT_URL = None
|
|
|
|
LOGIN_REDIRECT_URL = None
|
|
|
|
|
2015-09-03 18:04:12 +00:00
|
|
|
EMAIL_HOST="localhost"
|
|
|
|
EMAIL_PORT=25
|
|
|
|
|
|
|
|
SECRET_KEY_FILE = os.path.join(BASE_DIR, "secret-key")
|
|
|
|
with open(SECRET_KEY_FILE, "r") as f:
|
|
|
|
SECRET_KEY = f.read().strip()
|
2015-05-01 23:30:30 +00:00
|
|
|
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
2015-05-13 23:19:55 +00:00
|
|
|
DEBUG = False
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-05-13 23:19:55 +00:00
|
|
|
ALLOWED_HOSTS = [
|
2015-05-21 02:57:22 +00:00
|
|
|
".ungleich.ch",
|
2015-07-31 23:05:19 +00:00
|
|
|
"digital.glarus.ungleich.ch" ,
|
|
|
|
]
|
2015-05-01 23:30:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
INSTALLED_APPS = (
|
2015-05-21 07:44:31 +00:00
|
|
|
'djangocms_admin_style',
|
2015-05-01 23:30:30 +00:00
|
|
|
'django.contrib.admin',
|
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
2015-05-21 04:38:22 +00:00
|
|
|
'django.contrib.sites',
|
2015-05-21 04:06:24 +00:00
|
|
|
'cms', # django CMS itself
|
|
|
|
'treebeard', # utilities for implementing a tree
|
|
|
|
'menus', # helper for model independent hierarchical website navigation
|
|
|
|
'sekizai', # for javascript and css management
|
|
|
|
#django-cms plugins
|
|
|
|
'djangocms_flash',
|
|
|
|
'djangocms_googlemap',
|
|
|
|
'djangocms_inherit',
|
|
|
|
'djangocms_link',
|
|
|
|
'djangocms_snippet',
|
|
|
|
'djangocms_teaser',
|
2015-08-27 16:20:08 +00:00
|
|
|
'djangocms_page_meta',
|
2015-05-21 04:06:24 +00:00
|
|
|
#django-filer
|
|
|
|
'cmsplugin_filer_file',
|
|
|
|
'cmsplugin_filer_folder',
|
|
|
|
'cmsplugin_filer_link',
|
|
|
|
'cmsplugin_filer_teaser',
|
|
|
|
'cmsplugin_filer_video',
|
|
|
|
# versioning
|
|
|
|
'reversion',
|
|
|
|
#ck-editor
|
|
|
|
'djangocms_text_ckeditor',
|
|
|
|
# djangocms-blog
|
|
|
|
'filer',
|
|
|
|
'easy_thumbnails',
|
|
|
|
'cmsplugin_filer_image',
|
|
|
|
'parler',
|
|
|
|
'taggit',
|
|
|
|
'taggit_autosuggest',
|
|
|
|
'django_select2',
|
|
|
|
'meta',
|
|
|
|
'meta_mixin',
|
|
|
|
'admin_enhancer',
|
2015-05-22 06:02:05 +00:00
|
|
|
'djangocms_blog',
|
|
|
|
'bootstrap3',
|
2015-05-22 07:31:44 +00:00
|
|
|
'compressor',
|
2015-05-23 06:33:35 +00:00
|
|
|
# ungleich
|
|
|
|
'ungleich',
|
2015-08-27 16:20:08 +00:00
|
|
|
'hosting',
|
2015-06-10 21:34:33 +00:00
|
|
|
'digitalglarus',
|
2015-05-01 23:30:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
2015-05-21 07:21:08 +00:00
|
|
|
'django.middleware.locale.LocaleMiddleware',
|
2015-05-21 04:39:30 +00:00
|
|
|
# django-cms middlewares
|
|
|
|
'cms.middleware.user.CurrentUserMiddleware',
|
|
|
|
'cms.middleware.page.CurrentPageMiddleware',
|
|
|
|
'cms.middleware.toolbar.ToolbarMiddleware',
|
|
|
|
'cms.middleware.language.LanguageCookieMiddleware',
|
2015-05-01 23:30:30 +00:00
|
|
|
)
|
2015-05-27 13:41:43 +00:00
|
|
|
# 'django.middleware.security.SecurityMiddleware',
|
2015-05-01 23:30:30 +00:00
|
|
|
|
|
|
|
ROOT_URLCONF = 'dynamicweb.urls'
|
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
|
'DIRS': [],
|
|
|
|
'APP_DIRS': True,
|
|
|
|
'OPTIONS': {
|
|
|
|
'context_processors': [
|
|
|
|
'django.template.context_processors.debug',
|
|
|
|
'django.template.context_processors.request',
|
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
WSGI_APPLICATION = 'dynamicweb.wsgi.application'
|
|
|
|
|
2015-05-21 04:38:22 +00:00
|
|
|
# Deprecated since version 1.8.
|
|
|
|
# callables take a request object as their argument and return a dictionary of
|
|
|
|
# items to be merged into the context.
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
|
"django.contrib.auth.context_processors.auth",
|
2015-05-21 07:24:56 +00:00
|
|
|
"django.core.context_processors.debug",
|
|
|
|
"django.core.context_processors.i18n",
|
|
|
|
"django.core.context_processors.media",
|
|
|
|
"django.core.context_processors.static",
|
|
|
|
"django.core.context_processors.tz",
|
2015-05-21 04:38:22 +00:00
|
|
|
"django.contrib.messages.context_processors.messages",
|
|
|
|
"django.core.context_processors.request",
|
2015-05-21 04:42:05 +00:00
|
|
|
'sekizai.context_processors.sekizai',
|
|
|
|
'cms.context_processors.cms_settings',
|
2015-05-21 04:38:22 +00:00
|
|
|
)
|
2015-05-01 23:30:30 +00:00
|
|
|
|
2015-05-21 08:17:05 +00:00
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(BASE_DIR, 'templates'),
|
|
|
|
)
|
|
|
|
|
2015-05-22 04:43:18 +00:00
|
|
|
CMS_TEMPLATES_DIR = {
|
2015-05-22 04:51:23 +00:00
|
|
|
1: os.path.join(TEMPLATE_DIRS[0], 'cms/ungleich.ch/'),
|
2015-05-21 08:17:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-05-01 23:30:30 +00:00
|
|
|
# Database
|
|
|
|
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
2015-05-13 23:22:20 +00:00
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
'NAME': 'app',
|
2015-05-01 23:30:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Internationalization
|
2015-05-21 04:38:22 +00:00
|
|
|
# https://docs.djangoproject.com/en/1.7/topics/i18n/
|
|
|
|
|
2015-05-01 23:30:30 +00:00
|
|
|
TIME_ZONE = 'UTC'
|
|
|
|
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
|
|
USE_L10N = True
|
|
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
2015-05-23 06:33:35 +00:00
|
|
|
LANGUAGES = (
|
|
|
|
('en-us', _('US English')),
|
|
|
|
)
|
|
|
|
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
|
|
|
CMS_PLACEHOLDER_CONF = {
|
|
|
|
'logo_image': {
|
|
|
|
'name': 'Logo Image',
|
|
|
|
'plugins': ['FilerImagePlugin'],
|
|
|
|
'limits': {
|
|
|
|
'global': 1,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'page-title': {
|
|
|
|
'name': 'Page Title',
|
|
|
|
'plugins': ['TextPlugin'],
|
|
|
|
'default_plugins': [
|
|
|
|
{
|
|
|
|
'plugin_type': 'TextPlugin',
|
|
|
|
'values': {
|
|
|
|
'body': 'Page Title...'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'limits': {
|
|
|
|
'global': 1,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'page-subtitle': {
|
|
|
|
'name': 'Page Subtitle',
|
|
|
|
'inherit': 'page-title',
|
|
|
|
'default_plugins': [
|
|
|
|
{
|
|
|
|
'plugin_type': 'TextPlugin',
|
|
|
|
'values': {
|
|
|
|
'body': 'Page subtitle...'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'footer_copyright': {
|
|
|
|
'name': 'Copyright',
|
|
|
|
'inherit': 'page-title',
|
|
|
|
'default_plugins': [
|
|
|
|
{
|
|
|
|
'plugin_type': 'TextPlugin',
|
|
|
|
'values': {
|
|
|
|
'body': 'Copyright...'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2015-06-14 04:35:25 +00:00
|
|
|
},
|
|
|
|
'content': {
|
|
|
|
'name' : _('Content'),
|
|
|
|
'default_plugins':[
|
|
|
|
{
|
|
|
|
'plugin_type':'TextPlugin',
|
|
|
|
'values':{'body':'<p></p>'},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
'post_content': {
|
|
|
|
'name' : _('Content'),
|
|
|
|
'default_plugins':[
|
|
|
|
{
|
|
|
|
'plugin_type':'TextPlugin',
|
|
|
|
'values':{'body':'<p></p>'},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2015-05-23 06:33:35 +00:00
|
|
|
}
|
|
|
|
|
2015-05-28 05:22:20 +00:00
|
|
|
CACHES = {
|
|
|
|
'default': {
|
2015-09-15 16:05:46 +00:00
|
|
|
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
|
|
|
|
'LOCATION': '127.0.0.1:11211',
|
2015-05-28 05:22:20 +00:00
|
|
|
}
|
|
|
|
}
|
2015-05-23 06:33:35 +00:00
|
|
|
|
2015-05-21 04:57:00 +00:00
|
|
|
try:
|
2015-05-21 07:10:54 +00:00
|
|
|
from dynamicweb.local.local_settings import *
|
2015-05-21 04:57:00 +00:00
|
|
|
except ImportError:
|
|
|
|
logging.warning("No local_settings file found.")
|
|
|
|
|
|
|
|
if not APP_ROOT_ENDPOINT.endswith('/'):
|
|
|
|
APP_ROOT += '/'
|
|
|
|
if LOGIN_URL is None:
|
2015-05-21 05:33:10 +00:00
|
|
|
LOGIN_URL = APP_ROOT_ENDPOINT + 'accounts/login/'
|
2015-05-21 04:57:00 +00:00
|
|
|
if LOGOUT_URL is None:
|
|
|
|
LOGOUT_URL = APP_ROOT_ENDPOINT + 'accounts/logout/'
|
|
|
|
if LOGIN_REDIRECT_URL is None:
|
|
|
|
LOGIN_REDIRECT_URL = APP_ROOT_ENDPOINT
|
|
|
|
|
2015-05-01 23:30:30 +00:00
|
|
|
# Static files (CSS, JavaScript, Images)
|
2015-05-21 04:38:22 +00:00
|
|
|
# https://docs.djangoproject.com/en/1.7/howto/static-files/
|
2015-05-01 23:30:30 +00:00
|
|
|
|
|
|
|
STATIC_URL = '/static/'
|
2015-05-12 21:44:30 +00:00
|
|
|
|
|
|
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
2015-05-13 23:19:55 +00:00
|
|
|
|
2015-05-21 04:57:00 +00:00
|
|
|
# Media files.
|
2015-05-31 10:52:53 +00:00
|
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
2015-05-21 04:57:00 +00:00
|
|
|
MEDIA_URL = APP_ROOT_ENDPOINT + 'media/'
|
2015-05-31 10:52:53 +00:00
|
|
|
FILE_UPLOAD_PERMISSIONS = 0o644
|
2015-05-21 02:57:22 +00:00
|
|
|
|
2015-05-21 04:57:00 +00:00
|
|
|
# Templates confs
|
|
|
|
TEMPLATE_DIRS = (
|
|
|
|
os.path.join(BASE_DIR, "templates"),
|
|
|
|
)
|
|
|
|
|
2015-05-21 07:10:54 +00:00
|
|
|
META_SITE_PROTOCOL = 'http'
|
|
|
|
META_USE_SITES = True
|
|
|
|
|
2015-05-21 05:23:45 +00:00
|
|
|
MIGRATION_MODULES = {
|
2015-05-21 07:10:54 +00:00
|
|
|
'cms': 'cms.migrations',
|
|
|
|
'filer': 'filer.migrations_django',
|
|
|
|
'menus': 'menus.migrations_django',
|
2015-05-21 05:23:45 +00:00
|
|
|
'djangocms_flash': 'djangocms_flash.migrations_django',
|
|
|
|
'djangocms_googlemap': 'djangocms_googlemap.migrations_django',
|
|
|
|
'djangocms_inherit': 'djangocms_inherit.migrations_django',
|
|
|
|
'djangocms_link': 'djangocms_link.migrations_django',
|
|
|
|
'djangocms_snippet': 'djangocms_snippet.migrations_django',
|
|
|
|
'djangocms_teaser': 'djangocms_teaser.migrations_django',
|
2015-05-21 07:10:54 +00:00
|
|
|
'djangocms_column': 'djangocms_column.migrations_django',
|
|
|
|
'djangocms_flash': 'djangocms_flash.migrations_django',
|
|
|
|
'djangocms_googlemap': 'djangocms_googlemap.migrations_django',
|
|
|
|
'djangocms_inherit': 'djangocms_inherit.migrations_django',
|
|
|
|
'djangocms_style': 'djangocms_style.migrations_django',
|
|
|
|
'cmsplugin_filer_image': 'cmsplugin_filer_image.migrations_django',
|
2015-05-21 05:23:45 +00:00
|
|
|
'cmsplugin_filer_file': 'cmsplugin_filer_file.migrations_django',
|
|
|
|
'cmsplugin_filer_folder': 'cmsplugin_filer_folder.migrations_django',
|
|
|
|
'cmsplugin_filer_link': 'cmsplugin_filer_link.migrations_django',
|
|
|
|
'cmsplugin_filer_teaser': 'cmsplugin_filer_teaser.migrations_django',
|
2015-05-21 07:10:54 +00:00
|
|
|
'cmsplugin_filer_utils': 'cmsplugin_filer_utils.migrations_django',
|
2015-05-21 05:23:45 +00:00
|
|
|
'cmsplugin_filer_video': 'cmsplugin_filer_video.migrations_django',
|
2015-06-09 07:49:48 +00:00
|
|
|
'djangocms_text_ckeditor': 'djangocms_text_ckeditor.migrations',
|
2015-05-21 05:23:45 +00:00
|
|
|
}
|
|
|
|
|
2015-05-22 07:31:44 +00:00
|
|
|
STATICFILES_FINDERS = (
|
|
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
|
|
'compressor.finders.CompressorFinder',
|
|
|
|
)
|
|
|
|
|
|
|
|
COMPRESS_PRECOMPILERS = (
|
|
|
|
('text/less', 'lesscpy {infile}'),
|
|
|
|
)
|
|
|
|
|
2015-05-21 05:23:45 +00:00
|
|
|
THUMBNAIL_PROCESSORS = (
|
|
|
|
'easy_thumbnails.processors.colorspace',
|
|
|
|
'easy_thumbnails.processors.autocrop',
|
|
|
|
'filer.thumbnail_processors.scale_and_crop_with_subject_location',
|
|
|
|
'easy_thumbnails.processors.filters',
|
|
|
|
)
|
2015-05-21 05:24:49 +00:00
|
|
|
|
|
|
|
# django-cms-text-ckeditor
|
|
|
|
TEXT_SAVE_IMAGE_FUNCTION='cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
|
2015-05-31 11:32:11 +00:00
|
|
|
TEXT_ADDITIONAL_TAGS = ('iframe',)
|
|
|
|
TEXT_ADDITIONAL_ATTRIBUTES = ('scrolling', 'allowfullscreen', 'frameborder')
|
|
|
|
USE_X_FORWARDED_HOST = True
|
2015-06-13 19:47:45 +00:00
|
|
|
|
|
|
|
# Django Bootstrap - Settings
|
|
|
|
# Added Configuration for bootstrap static files to load over https.
|
|
|
|
BOOTSTRAP3 = {
|
|
|
|
|
|
|
|
# The URL to the jQuery JavaScript file
|
|
|
|
'jquery_url': '//code.jquery.com/jquery.min.js',
|
|
|
|
|
|
|
|
# The Bootstrap base URL
|
|
|
|
'base_url': '//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/',
|
|
|
|
|
|
|
|
# The complete URL to the Bootstrap CSS file (None means derive it from base_url)
|
|
|
|
'css_url': None,
|
|
|
|
|
|
|
|
# The complete URL to the Bootstrap CSS file (None means no theme)
|
|
|
|
'theme_url': None,
|
|
|
|
|
|
|
|
# The complete URL to the Bootstrap JavaScript file (None means derive it from base_url)
|
|
|
|
'javascript_url': None,
|
|
|
|
|
|
|
|
# Put JavaScript in the HEAD section of the HTML document (only relevant if you use bootstrap3.html)
|
|
|
|
'javascript_in_head': False,
|
|
|
|
|
|
|
|
# Include jQuery with Bootstrap JavaScript (affects django-bootstrap3 template tags)
|
|
|
|
'include_jquery': False,
|
|
|
|
|
|
|
|
# Label class to use in horizontal forms
|
|
|
|
'horizontal_label_class': 'col-md-3',
|
|
|
|
|
|
|
|
# Field class to use in horizontal forms
|
|
|
|
'horizontal_field_class': 'col-md-9',
|
|
|
|
|
|
|
|
# Set HTML required attribute on required fields
|
|
|
|
'set_required': True,
|
|
|
|
|
|
|
|
# Set HTML disabled attribute on disabled fields
|
|
|
|
'set_disabled': False,
|
|
|
|
|
|
|
|
# Set placeholder attributes to label if no placeholder is provided
|
|
|
|
'set_placeholder': True,
|
|
|
|
|
|
|
|
# Class to indicate required (better to set this in your Django form)
|
|
|
|
'required_css_class': '',
|
|
|
|
|
|
|
|
# Class to indicate error (better to set this in your Django form)
|
|
|
|
'error_css_class': 'has-error',
|
|
|
|
|
|
|
|
# Class to indicate success, meaning the field has valid input (better to set this in your Django form)
|
|
|
|
'success_css_class': 'has-success',
|
|
|
|
|
|
|
|
# Renderers (only set these if you have studied the source and understand the inner workings)
|
|
|
|
'formset_renderers':{
|
|
|
|
'default': 'bootstrap3.renderers.FormsetRenderer',
|
|
|
|
},
|
|
|
|
'form_renderers': {
|
|
|
|
'default': 'bootstrap3.renderers.FormRenderer',
|
|
|
|
},
|
|
|
|
'field_renderers': {
|
|
|
|
'default': 'bootstrap3.renderers.FieldRenderer',
|
|
|
|
'inline': 'bootstrap3.renderers.InlineFieldRenderer',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
# djangocms_blog config
|
|
|
|
|
|
|
|
BLOG_ENABLE_COMMENTS = False
|
2015-06-14 04:35:25 +00:00
|
|
|
BLOG_USE_PLACEHOLDER = True
|
2015-06-13 19:47:45 +00:00
|
|
|
BLOG_IMAGE_THUMBNAIL_SIZE = {'size': '120x120', 'crop': True,'upscale': False}
|
|
|
|
BLOG_IMAGE_FULL_SIZE = {'size': '640x120', 'crop': True,'upscale': False}
|
|
|
|
BLOG_PAGINATION = 4
|
|
|
|
BLOG_LATEST_POSTS = BLOG_PAGINATION
|
|
|
|
BLOG_POSTS_LIST_TRUNCWORDS_COUNT = 100
|
|
|
|
BLOG_MULTISITE = True
|
|
|
|
BLOG_AUTHOR_DEFAULT = True
|
|
|
|
|
2015-06-16 07:37:13 +00:00
|
|
|
#django-meta
|
|
|
|
META_SITE_PROTOCOL = "https"
|
|
|
|
META_SITE_DOMAIN = "ungleich.ch"
|
|
|
|
META_SITE_TYPE = "website"
|
|
|
|
META_SITE_NAME = "ungleich"
|
|
|
|
META_INCLUDE_KEYWORDS = ["ungleich", "hosting", "switzerland", "Schweiz", "Swiss", "cdist"]
|
|
|
|
META_USE_SITES = True
|
|
|
|
|
2015-05-13 23:19:55 +00:00
|
|
|
try:
|
2015-05-27 13:41:43 +00:00
|
|
|
from .local.local_settings import *
|
2015-05-13 23:19:55 +00:00
|
|
|
except ImportError as e:
|
2015-05-14 09:58:43 +00:00
|
|
|
pass
|