update
This commit is contained in:
		
					parent
					
						
							
								abbc2982e3
							
						
					
				
			
			
				commit
				
					
						5fbde4878d
					
				
			
		
					 35 changed files with 39 additions and 34 deletions
				
			
		| 
						 | 
				
			
			@ -41,7 +41,7 @@ configure the values for the ssh host, user, port and target directory.
 | 
			
		|||
   Run:
 | 
			
		||||
 | 
			
		||||
   $ python manage.py makemigratoins
 | 
			
		||||
   $ python manage.py syncdb
 | 
			
		||||
   $ python manage.py migrate
 | 
			
		||||
 | 
			
		||||
7. Setup a circus configuration.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,7 +6,7 @@ from django.utils.translation import ugettext as _
 | 
			
		|||
class CMSGalleryPlugin(CMSPluginBase):
 | 
			
		||||
    model = DGGalleryPlugin
 | 
			
		||||
    name = _("Digital Glarus Gallery")
 | 
			
		||||
    render_template = "cms/digitalglarus/gallery.html"
 | 
			
		||||
    render_template = "digitalglarus/gallery.html"
 | 
			
		||||
 | 
			
		||||
    def render(self, context, instance, placeholder):
 | 
			
		||||
        context.update({
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +19,7 @@ class CMSGalleryPlugin(CMSPluginBase):
 | 
			
		|||
class CMSSupportersPlugin(CMSPluginBase):
 | 
			
		||||
    name = _("Digital Glarus Supporters")
 | 
			
		||||
    model = DGSupportersPlugin
 | 
			
		||||
    render_template = "cms/digitalglarus/supporters_plugin.html"
 | 
			
		||||
    render_template = "digitalglarus/supporters_plugin.html"
 | 
			
		||||
 | 
			
		||||
    def render(self, context, instance, placeholder):
 | 
			
		||||
        context.update({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,9 @@ Copyright 2015 ungleich.
 | 
			
		|||
# -*- coding: utf-8 -*-
 | 
			
		||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
from django.utils.translation import ugettext_lazy as _
 | 
			
		||||
 | 
			
		||||
# dotenv
 | 
			
		||||
import dotenv
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -15,6 +17,7 @@ gettext = lambda s: s
 | 
			
		|||
def env(env_name):
 | 
			
		||||
    return os.environ.get(env_name)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
			
		||||
 | 
			
		||||
PROJECT_DIR = os.path.abspath(
 | 
			
		||||
| 
						 | 
				
			
			@ -122,6 +125,12 @@ TEMPLATES = [
 | 
			
		|||
                'django.template.context_processors.request',
 | 
			
		||||
                'django.contrib.auth.context_processors.auth',
 | 
			
		||||
                'django.contrib.messages.context_processors.messages',
 | 
			
		||||
                "django.core.context_processors.media",
 | 
			
		||||
                "django.core.context_processors.static",
 | 
			
		||||
                "django.core.context_processors.tz",
 | 
			
		||||
                "django.contrib.messages.context_processors.messages",
 | 
			
		||||
                'sekizai.context_processors.sekizai',
 | 
			
		||||
                'cms.context_processors.cms_settings',
 | 
			
		||||
            ],
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
| 
						 | 
				
			
			@ -129,27 +138,11 @@ TEMPLATES = [
 | 
			
		|||
 | 
			
		||||
WSGI_APPLICATION = 'dynamicweb.wsgi.application'
 | 
			
		||||
 | 
			
		||||
# 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",
 | 
			
		||||
    "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",
 | 
			
		||||
    "django.contrib.messages.context_processors.messages",
 | 
			
		||||
    "django.core.context_processors.request",
 | 
			
		||||
    'sekizai.context_processors.sekizai',
 | 
			
		||||
    'cms.context_processors.cms_settings',
 | 
			
		||||
)
 | 
			
		||||
TDIR = os.path.join(PROJECT_DIR, 'templates')
 | 
			
		||||
 | 
			
		||||
TEMPLATE_DIRS = (
 | 
			
		||||
    os.path.join(PROJECT_DIR, 'templates'),os.path.join(PROJECT_DIR, 'templates/cms/'),
 | 
			
		||||
)
 | 
			
		||||
# Database
 | 
			
		||||
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
 | 
			
		||||
CMS_TEMPLATES_DIR = {
 | 
			
		||||
    1: os.path.join(TDIR, '')
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
DATABASES = {
 | 
			
		||||
    'default': {
 | 
			
		||||
| 
						 | 
				
			
			@ -268,11 +261,6 @@ MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
 | 
			
		|||
MEDIA_URL = APP_ROOT_ENDPOINT + 'media/'
 | 
			
		||||
FILE_UPLOAD_PERMISSIONS = 0o644
 | 
			
		||||
 | 
			
		||||
# Templates confs
 | 
			
		||||
TEMPLATE_DIRS = (
 | 
			
		||||
    os.path.join(PROJECT_DIR, "templates"),
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
META_SITE_PROTOCOL = 'http'
 | 
			
		||||
META_USE_SITES = True
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -415,4 +403,4 @@ META_INCLUDE_KEYWORDS = ["ungleich", "hosting", "switzerland",
 | 
			
		|||
                         "Schweiz", "Swiss", "cdist"]
 | 
			
		||||
META_USE_SITES = True
 | 
			
		||||
 | 
			
		||||
PARLER_LANGUAGES = {1: ({'code': 'en-us'}, {'code': 'de'}, )}
 | 
			
		||||
PARLER_LANGUAGES = {1: ({'code': 'en-us'}, {'code': 'de'},)}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,3 +33,10 @@ Please use the -b command-line option or the PGBINOLD environment variable.
 | 
			
		|||
 | 
			
		||||
You must identify the directory where the old cluster binaries reside.
 | 
			
		||||
Please use the -b command-line option or the PGBINOLD environment variable.
 | 
			
		||||
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
  pg_upgrade run on Tue Mar  1 20:46:31 2016
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
You must identify the directory where the old cluster binaries reside.
 | 
			
		||||
Please use the -b command-line option or the PGBINOLD environment variable.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,3 +23,8 @@
 | 
			
		|||
  pg_upgrade run on Mon Feb 29 11:56:32 2016
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
  pg_upgrade run on Tue Mar  1 20:46:31 2016
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,3 +23,8 @@
 | 
			
		|||
  pg_upgrade run on Mon Feb 29 11:56:32 2016
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
  pg_upgrade run on Tue Mar  1 20:46:31 2016
 | 
			
		||||
-----------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{% extends "cms/digitalglarus/base.html" %}
 | 
			
		||||
{% extends "digitalglarus/base.html" %}
 | 
			
		||||
{% load staticfiles cms_tags %}
 | 
			
		||||
{% block title %}About{% endblock %}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{% extends "cms/digitalglarus/base.html" %}
 | 
			
		||||
{% extends "digitalglarus/base.html" %}
 | 
			
		||||
{% load cms_tags %}
 | 
			
		||||
{% block title %}Contact{% endblock %}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{% extends "cms/digitalglarus/base.html" %}
 | 
			
		||||
{% extends "digitalglarus/base.html" %}
 | 
			
		||||
{% load staticfiles cms_tags %}
 | 
			
		||||
{% block title %}About{% endblock %}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{% extends "cms/ungleichch/base.html" %}
 | 
			
		||||
{% extends "ungleichch/base.html" %}
 | 
			
		||||
{% block base_content %}
 | 
			
		||||
{% block content %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{% extends "cms/ungleichch/base.html" %}
 | 
			
		||||
{% extends "ungleichch/base.html" %}
 | 
			
		||||
{% load cms_tags %}
 | 
			
		||||
{% block base_content %}
 | 
			
		||||
{% placeholder "page_content" %}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue