From c7e6f0fda8b17841e7be5da44766e366c90f1ccd Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Sun, 3 Jun 2018 16:03:11 +0300 Subject: Connect database to templates --- blog/templates/blog/post_list.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 blog/templates/blog/post_list.html (limited to 'blog/templates') diff --git a/blog/templates/blog/post_list.html b/blog/templates/blog/post_list.html new file mode 100644 index 0000000..acd4ced --- /dev/null +++ b/blog/templates/blog/post_list.html @@ -0,0 +1,18 @@ + + + Django Girls blog + + +
+

Django Girls Blog

+
+ + {% for post in posts %} +
+

published: {{ post.published_date }}

+

{{ post.title }}

+

{{ post.text|linebreaksbr }}

+
+ {% endfor %} + + \ No newline at end of file -- cgit v1.3.1