From 03bf0f33ac47b2f5597c39b10d9f26d7fb893d79 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 29 Oct 2017 22:07:12 +0100 Subject: Création d’une template pour les flatpages Django --- templates/flatpages/default.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/flatpages/default.html (limited to 'templates') diff --git a/templates/flatpages/default.html b/templates/flatpages/default.html new file mode 100644 index 0000000..42f67db --- /dev/null +++ b/templates/flatpages/default.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block title %}{{ flatpage.title }} – {% endblock %} + +{% block body %} +
{{ flatpage.content }}
+{% endblock %} -- cgit v1.2.1 From b68c59c72be3a8e3d3201dca1941879508afcb3b Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Mon, 30 Oct 2017 18:29:21 +0100 Subject: Liens vers les flatpages --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 005fd5b..abaf5f1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@ {% endblock %}