From 6e911d34d7a41383be7ad026fb805ff00ed08936 Mon Sep 17 00:00:00 2001 From: Standa Platil Date: Tue, 24 Nov 2020 20:55:18 +0100 Subject: [PATCH] blog page --- blog/templates/blog/blog_index_page.html | 18 ++++++++++++++++++ blog/templates/blog/blog_page.html | 17 +++++++++++++++++ veterina/settings/base.py | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 blog/templates/blog/blog_index_page.html create mode 100644 blog/templates/blog/blog_page.html diff --git a/blog/templates/blog/blog_index_page.html b/blog/templates/blog/blog_index_page.html new file mode 100644 index 0000000..bb6b843 --- /dev/null +++ b/blog/templates/blog/blog_index_page.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% load wagtailcore_tags %} + +{% block body_class %}template-blogindexpage{% endblock %} + +{% block content %} +

{{ page.title }}

+ +
{{ page.intro|richtext }}
+ + {% for post in page.get_children %} +

{{ post.title }}

+ {{ post.specific.intro }} + {{ post.specific.body|richtext }} + {% endfor %} + +{% endblock %} \ No newline at end of file diff --git a/blog/templates/blog/blog_page.html b/blog/templates/blog/blog_page.html new file mode 100644 index 0000000..bf7da56 --- /dev/null +++ b/blog/templates/blog/blog_page.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% load wagtailcore_tags %} + +{% block body_class %}template-blogpage{% endblock %} + +{% block content %} +

{{ page.title }}

+

{{ page.date }}

+ +
{{ page.intro }}
+ + {{ page.body|richtext }} + +

Return to blog

+ +{% endblock %} \ No newline at end of file diff --git a/veterina/settings/base.py b/veterina/settings/base.py index 3e0d625..d8e4b06 100644 --- a/veterina/settings/base.py +++ b/veterina/settings/base.py @@ -124,7 +124,7 @@ AUTH_PASSWORD_VALIDATORS = [ LANGUAGE_CODE = 'en-us' -TIME_ZONE = 'UTC' +TIME_ZONE = 'Europe/Prague' USE_I18N = True