From 8e9fde58620f4e5d391246afa28f6681debd78a7 Mon Sep 17 00:00:00 2001 From: pstruebi Date: Sun, 12 Jun 2022 14:18:41 +0200 Subject: [PATCH] base template working --- run_dev_server.sh | 2 +- templates/base.html | 8 +++++++- templates/index.html | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/run_dev_server.sh b/run_dev_server.sh index c22c1cf..43a3f09 100644 --- a/run_dev_server.sh +++ b/run_dev_server.sh @@ -1,2 +1,2 @@ export FLASK_ENV=development -flask run #--host=0.0.0.0 \ No newline at end of file +flask run --host=0.0.0.0 \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 1fd402c..ff85492 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,7 +12,7 @@ +
+ {% for message in get_flashed_messages() %} +
{{ message }}
+ {% endfor %} + {% block content %} {% endblock %} +
diff --git a/templates/index.html b/templates/index.html index 4a2559b..efcff4a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,3 +1,4 @@ +{% extends 'base.html' %} {% block content %}

{% block title %} Welcome {% endblock %}

@@ -5,7 +6,7 @@

{{ event['subject'] }}

- {{ event["subject"] }} + {{ event["start"] }} Edit