From 3cdbc0aa5864867577563b5b3a699d47cac79770 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Tue, 30 Jun 2020 23:30:41 -0400 Subject: [PATCH] Pull out base template --- txt_house/templates/base.html | 12 ++++++++++++ txt_house/templates/index.html | 23 ++++++++--------------- 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 txt_house/templates/base.html diff --git a/txt_house/templates/base.html b/txt_house/templates/base.html new file mode 100644 index 0000000..1856c0d --- /dev/null +++ b/txt_house/templates/base.html @@ -0,0 +1,12 @@ + + + + + + txt.house + + + + {% block body %}{% endblock %} + + diff --git a/txt_house/templates/index.html b/txt_house/templates/index.html index 8523976..fcd6fe9 100644 --- a/txt_house/templates/index.html +++ b/txt_house/templates/index.html @@ -1,16 +1,9 @@ - - - - - - txt.house - +{% extends 'base.html' %} - -
- {% csrf_token %} - - -
- - +{% block body %} +
+ {% csrf_token %} + + +
+{% endblock %} -- 2.20.1