Merge branch 'template_hierarchy'
This commit is contained in:
commit
781e633abc
3 changed files with 13 additions and 2 deletions
6
flangr/templates/base.html
Normal file
6
flangr/templates/base.html
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Flangr</title>
|
||||||
|
</head>
|
||||||
|
<body>{% block content %}{% endblock content %}</body>
|
||||||
|
</html>
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
<body>
|
{% extends "base.html" %}
|
||||||
|
{% block content %}
|
||||||
{% if object.title %}
|
{% if object.title %}
|
||||||
<h1>{{ object.title }}</h1>
|
<h1>{{ object.title }}</h1>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
@ -16,4 +17,4 @@
|
||||||
{{ form }}
|
{{ form }}
|
||||||
<input type="submit", value="Post">
|
<input type="submit", value="Post">
|
||||||
</form>
|
</form>
|
||||||
</body>
|
{% endblock content %}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% endblock content %}
|
||||||
Loading…
Add table
Reference in a new issue