From 0b11a444473d63b9375983993f03512ccdb6ab86 Mon Sep 17 00:00:00 2001 From: CFE Date: Thu, 5 Jul 2018 14:19:37 -0700 Subject: [PATCH] 19 - Using Conditions in a Template --- src/pages/views.py | 1 + src/templates/about.html | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/views.py b/src/pages/views.py index 224a99b..0b81b49 100644 --- a/src/pages/views.py +++ b/src/pages/views.py @@ -15,6 +15,7 @@ def contact_view(request, *args, **kwargs): def about_view(request, *args, **kwargs): my_context = { "my_text": "This is about us", + "this_is_true": True, "my_number": 123, "my_list": [1313, 4231, 312, "Abc"] diff --git a/src/templates/about.html b/src/templates/about.html index f70d93c..0c6563a 100644 --- a/src/templates/about.html +++ b/src/templates/about.html @@ -16,8 +16,16 @@

About