From 9c5dd3c152d1a94167e400b3c08c74cdc4ddde30 Mon Sep 17 00:00:00 2001 From: rscnt Date: Tue, 16 Jun 2015 01:37:13 -0600 Subject: [PATCH 1/2] settings: added django-meta configuration. Signed-off-by: rscnt --- dynamicweb/settings.py | 8 ++++++++ templates/cms/ungleich.ch/base.html | 1 + 2 files changed, 9 insertions(+) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 6e290f91..42a3b114 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -410,6 +410,14 @@ BLOG_POSTS_LIST_TRUNCWORDS_COUNT = 100 BLOG_MULTISITE = True BLOG_AUTHOR_DEFAULT = True +#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 + try: from .local.local_settings import * except ImportError as e: diff --git a/templates/cms/ungleich.ch/base.html b/templates/cms/ungleich.ch/base.html index 7ca00c3d..3bab1afe 100644 --- a/templates/cms/ungleich.ch/base.html +++ b/templates/cms/ungleich.ch/base.html @@ -29,6 +29,7 @@ {% endaddtoblock %} + {% include 'meta.html' %} {% block meta %} {% endblock %} {% render_block "external-css" %} From ca7efc1f714ea31be73c459221c9b465824ca837 Mon Sep 17 00:00:00 2001 From: rscnt Date: Tue, 16 Jun 2015 01:37:52 -0600 Subject: [PATCH 2/2] requirements: added djangocms-page-meta Signed-off-by: rscnt --- dynamicweb/settings.py | 1 + requirements.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index 42a3b114..cf460c14 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -88,6 +88,7 @@ INSTALLED_APPS = ( 'ungleich', 'railshosting', 'digitalglarus', + 'djangocms_page_meta', ) MIDDLEWARE_CLASSES = ( diff --git a/requirements.txt b/requirements.txt index 9abdc6d3..0bff54f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -50,3 +50,6 @@ circus-web chaussette meinheld gevent + +# djangocms-page-meta +djangocms-page-meta