Merge branch 'template_hierarchy'

This commit is contained in:
Maximilian Friedersdorff 2022-07-06 22:07:24 +01:00
commit 781e633abc
3 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,6 @@
<html>
<head>
<title>Flangr</title>
</head>
<body>{% block content %}{% endblock content %}</body>
</html>

View file

@ -1,4 +1,5 @@
<body>
{% extends "base.html" %}
{% block content %}
{% if object.title %}
<h1>{{ object.title }}</h1>
{% else %}
@ -16,4 +17,4 @@
{{ form }}
<input type="submit", value="Post">
</form>
</body>
{% endblock content %}

View file

@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block content %}
{% endblock content %}