From: David Kerkeslager Date: Wed, 1 Jul 2020 03:30:41 +0000 (-0400) Subject: Pull out base template X-Git-Url: https://code.kerkeslager.com/?p=txt.house;a=commitdiff_plain;h=3cdbc0aa5864867577563b5b3a699d47cac79770 Pull out base template --- 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 %}