diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 81e70b0f..12a42437 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -32,7 +32,7 @@ def about(request): # return render(request, 'digitalglarus/letscowork.html') def index(request): - return render(request, 'digitalglarus/letscowork.html') + return home(request) def home(request): return render(request, 'digitalglarus/index.html') diff --git a/dynamicweb/settings.py b/dynamicweb/settings.py index e133cca3..6bcc26c3 100644 --- a/dynamicweb/settings.py +++ b/dynamicweb/settings.py @@ -159,7 +159,7 @@ TEMPLATE_DIRS = ( ) CMS_TEMPLATES_DIR = { - 1: os.path.join(TEMPLATE_DIRS[0], 'cms/ungleich.ch/'), + 1: os.path.join(TEMPLATE_DIRS[0], 'cms/'), } @@ -187,6 +187,7 @@ USE_TZ = True LANGUAGES = ( ('en-us', _('US English')), + ('de', _('German')), ) LANGUAGE_CODE = 'en-us' diff --git a/dynamicweb/urls.py b/dynamicweb/urls.py index a69f2abe..b624498d 100644 --- a/dynamicweb/urls.py +++ b/dynamicweb/urls.py @@ -1,6 +1,7 @@ from django.conf.urls import patterns, include, url from django.contrib import admin # deprecated in version 1.8 +from django.conf.urls.i18n import i18n_patterns from django.conf.urls.static import static from dynamicweb import settings @@ -11,13 +12,17 @@ urlpatterns = [ namespace="digitalglarus")), url(r'^hosting/', include('hosting.urls', namespace="hosting")), url(r'^railshosting/', railshosting, name="rails.hosting"), - url(r'^admin/', include(admin.site.urls)), - url(r'^', include('cms.urls')), url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), url(r'^jsi18n/(?P\S+?)/$', 'django.views.i18n.javascript_catalog'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +# note the django CMS URLs included via i18n_patterns +urlpatterns += i18n_patterns('', + url(r'^admin/', include(admin.site.urls)), + url(r'^', include('cms.urls')), +) + if settings.DEBUG: urlpatterns += patterns('', url(r'^media/(?P.*)$', diff --git a/requirements.txt b/requirements.txt index f43f1e69..342be9cf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ six==1.3.0 #compat python-memcached # django -django==1.7.8 +django==1.7.10 #django-assets django-bootstrap3 @@ -45,10 +45,9 @@ djangocms-table cmsplugin-filer==0.10.1 # production --e git+git@github.com:circus-tent/circus.git#egg=circus -circus-web -chaussette -meinheld +# circus-web +# chaussette +# meinheld # python3 support gevent>=1.1a2 diff --git a/templates/cms/__init__.py b/templates/cms/__init__.py new file mode 100644 index 00000000..5bd2656f --- /dev/null +++ b/templates/cms/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +from django.utils.translation import ugettext_lazy as _ +TEMPLATES = { + 'digitalglarus/about.html': _('DG.About'), + 'digitalglarus/contact.html': _('DG.Contact'), + 'digitalglarus/index.html': _('DG.Home'), + 'digitalglarus/letscowork.html': _('DG.CoWork'), + 'ungleichch/blog.html': _('Blog'), + 'ungleichch/page.html': _('Page'), +} diff --git a/templates/cms/digitalglarus/__init__.py b/templates/cms/digitalglarus/__init__.py new file mode 100644 index 00000000..7b16fec8 --- /dev/null +++ b/templates/cms/digitalglarus/__init__.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +from django.utils.translation import ugettext_lazy as _ +TEMPLATES = { + 'about.html': _('DG.About'), + 'contact.html': _('DG.Contact'), + 'index.html': _('DG.Home'), + 'letscowork.html': _('DG.CoWork'), + 'detail.html': _('DG.Detail'), +} diff --git a/templates/cms/digitalglarus/about.html b/templates/cms/digitalglarus/about.html new file mode 100755 index 00000000..6c12cbcb --- /dev/null +++ b/templates/cms/digitalglarus/about.html @@ -0,0 +1,57 @@ +{% extends "cms/digitalglarus/base.html" %} +{% load staticfiles cms_tags %} +{% block title %}About{% endblock %} + +{% block content %} +
+
+
+
+

{% placeholder 'digitalglarus_why_us' %}

+
+
+
+ +
+
+

+ {% placeholder 'digitalglarus_why_us_content' %} +

+
+
+
+
+ +
+
+
+
+

+ {% placeholder 'digitalglarus_why_glarus' %} +

+
+
+
+ +

+ {% placeholder 'digitalglarus_why_glarus_beautiful_landscape' %} +

+
+
+ + {% placeholder 'digitalglarus_why_glarus_affordable_price' %} + +
+
+ + {% placeholder 'digitalglarus_why_glarus_direct_connection_zurich' %} + +
+
+
+
+ + + + +{% endblock %} diff --git a/templates/cms/digitalglarus/base.html b/templates/cms/digitalglarus/base.html new file mode 100644 index 00000000..d5d50456 --- /dev/null +++ b/templates/cms/digitalglarus/base.html @@ -0,0 +1,128 @@ +{% load staticfiles cms_tags menu_tags sekizai_tags menu_tags %} + + + + + + + + + + + + + {% page_attribute "page_title" %} + + + + + + + + + + + + + + + + + + + {% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %} + {% render_block "js" postprocessor "compressor.contrib.sekizai.compress" %} + + + + + {% cms_toolbar %} + {% language_chooser "menu/language_chooser.html" %} +
Digital Glarus
+
+ {% placeholder 'digital_glarus_legend' %} +
+ + + + +
+ {% block content %} {% endblock %} +
+ + + + + + + + + + + + + + + + + diff --git a/templates/cms/digitalglarus/contact.html b/templates/cms/digitalglarus/contact.html new file mode 100755 index 00000000..3b5f5734 --- /dev/null +++ b/templates/cms/digitalglarus/contact.html @@ -0,0 +1,65 @@ +{% extends "cms/digitalglarus/base.html" %} +{% load cms_tags %} +{% block title %}Contact{% endblock %} + +{% block content %} +
+
+
+
+

+ {% placeholder 'digital_glarus_contact' %} +

+
+
+
+ {% placeholder 'digital_glarus_contact_content' %} +
+
+ {% placeholder 'digital_glarus_contact_information' %} +
+
+
+
+ +
+
+
+
+

Contact + form +

+
+

If you want further information on Digital Glarus, please send us a message using the form below.

+
+ {% csrf_token %} +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+
+
+ + +{% endblock %} diff --git a/templates/cms/digitalglarus/detail.html b/templates/cms/digitalglarus/detail.html new file mode 100644 index 00000000..412a6b91 --- /dev/null +++ b/templates/cms/digitalglarus/detail.html @@ -0,0 +1,11 @@ +

{{ message }}

+ + + +

Back to Main diff --git a/templates/cms/digitalglarus/index.html b/templates/cms/digitalglarus/index.html new file mode 100644 index 00000000..6c5fb507 --- /dev/null +++ b/templates/cms/digitalglarus/index.html @@ -0,0 +1,99 @@ +{% extends "cms/digitalglarus/base.html" %} +{% load staticfiles cms_tags %} + +{% block content %} +

+
+
+ +

+ WELCOME TO +

+

Digital Glarus

+
+

+ By + ungleich gmbh + +

+
+
+
+ +
+
+
+
+

+ {% placeholder 'digital_glarus_build_a_tech_valley' %} +

+
+ +
+ {% placeholder 'digital_glarus_build_a_tech_valley_content' %} +

 

+
+
+
+ +
+
+
+
+

+ {% placeholder 'digital_glarus_a_new_area' %} +

+
+ {% placeholder 'digital_glarus_a_new_area_content' %} +
+
+
+ +
+
+
+
+

+ {% placeholder 'digital_glarus_why_be_interested' %} +

+
+ {% placeholder 'digital_glarus_why_be_interested_content' %} +
+
+
+
+
+
+
+

+ {% placeholder 'digital_glarus_where_we_are' %} +

+
+ {% placeholder 'digital_glarus_where_we_are_content' %} +

 

+
+
+
+ +{% endblock %} diff --git a/templates/cms/digitalglarus/letscowork.html b/templates/cms/digitalglarus/letscowork.html new file mode 100644 index 00000000..8bc8eda6 --- /dev/null +++ b/templates/cms/digitalglarus/letscowork.html @@ -0,0 +1,53 @@ +{% extends "cms/digitalglarus/base.html" %} +{% load staticfiles cms_tags %} +{% block title %}crowdfunding{% endblock %} + +{% block content %} +
+
+
+

99 days to go!

+
+
+
+
+
+
+
+ +
+
+
+ + +
+
+
+
+

+ {% placeholder 'digitalglarus_why_glarus' %} +

+
+
+
+ +

+ {% placeholder 'digitalglarus_why_glarus_beautiful_landscape' %} +

+
+
+ + {% placeholder 'digitalglarus_why_glarus_affordable_price' %} + +
+
+ + {% placeholder 'digitalglarus_why_glarus_direct_connection_zurich' %} + +
+
+
+
+ + +{% endblock %} diff --git a/templates/cms/ungleich.ch/index.html b/templates/cms/ungleich.ch/index.html deleted file mode 100644 index 9e1c9503..00000000 --- a/templates/cms/ungleich.ch/index.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends "cms/ungleich.ch/base.html" %} -{% block base_content %} -{% endblock %} diff --git a/templates/cms/ungleich.ch/__init__.py b/templates/cms/ungleichch/__init__.py similarity index 100% rename from templates/cms/ungleich.ch/__init__.py rename to templates/cms/ungleichch/__init__.py diff --git a/templates/cms/ungleich.ch/_footer.html b/templates/cms/ungleichch/_footer.html similarity index 100% rename from templates/cms/ungleich.ch/_footer.html rename to templates/cms/ungleichch/_footer.html diff --git a/templates/cms/ungleich.ch/_header_base.html b/templates/cms/ungleichch/_header_base.html similarity index 100% rename from templates/cms/ungleich.ch/_header_base.html rename to templates/cms/ungleichch/_header_base.html diff --git a/templates/cms/ungleich.ch/_menu.html b/templates/cms/ungleichch/_menu.html similarity index 100% rename from templates/cms/ungleich.ch/_menu.html rename to templates/cms/ungleichch/_menu.html diff --git a/templates/cms/ungleich.ch/base.html b/templates/cms/ungleichch/base.html similarity index 94% rename from templates/cms/ungleich.ch/base.html rename to templates/cms/ungleichch/base.html index 339fe37c..9897c4f8 100644 --- a/templates/cms/ungleich.ch/base.html +++ b/templates/cms/ungleichch/base.html @@ -37,11 +37,11 @@ {% cms_toolbar %} - {% show_menu 0 1 100 100 "cms/ungleich.ch/_menu.html" %} + {% show_menu 0 1 100 100 "cms/ungleichch/_menu.html" %} {% block base_header %} - {% include "cms/ungleich.ch/_header_base.html" %} + {% include "cms/ungleichch/_header_base.html" %} {% endblock %}
@@ -53,7 +53,7 @@
- {% include "cms/ungleich.ch/_footer.html" %} + {% include "cms/ungleichch/_footer.html" %} {% addtoblock "external-js" %} {% bootstrap_javascript %} {% endaddtoblock %} diff --git a/templates/cms/ungleich.ch/blog.html b/templates/cms/ungleichch/blog.html similarity index 64% rename from templates/cms/ungleich.ch/blog.html rename to templates/cms/ungleichch/blog.html index bfc3aae7..5317a021 100644 --- a/templates/cms/ungleich.ch/blog.html +++ b/templates/cms/ungleichch/blog.html @@ -1,4 +1,4 @@ -{% extends "cms/ungleich.ch/base.html" %} +{% extends "cms/ungleichch/base.html" %} {% block base_content %} {% block content %} {% endblock %} diff --git a/templates/cms/ungleichch/index.html b/templates/cms/ungleichch/index.html new file mode 100644 index 00000000..f3fbca67 --- /dev/null +++ b/templates/cms/ungleichch/index.html @@ -0,0 +1,3 @@ +{% extends "cms/ungleichch/base.html" %} +{% block base_content %} +{% endblock %} diff --git a/templates/cms/ungleich.ch/page.html b/templates/cms/ungleichch/page.html similarity index 68% rename from templates/cms/ungleich.ch/page.html rename to templates/cms/ungleichch/page.html index 66f67def..81a4a027 100644 --- a/templates/cms/ungleich.ch/page.html +++ b/templates/cms/ungleichch/page.html @@ -1,4 +1,4 @@ -{% extends "cms/ungleich.ch/base.html" %} +{% extends "cms/ungleichch/base.html" %} {% load cms_tags %} {% block base_content %} {% placeholder "page_content" %}