From ca193a3c51ad0041628b79df99910d7fdd7a203c Mon Sep 17 00:00:00 2001 From: Nikita Jain Date: Tue, 24 Oct 2017 23:58:34 +0530 Subject: [PATCH 1/3] Introducing template inheritance --- project_name/templates/base.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/project_name/templates/base.html b/project_name/templates/base.html index 5fe0b53..a884fcb 100644 --- a/project_name/templates/base.html +++ b/project_name/templates/base.html @@ -2,9 +2,14 @@ - + Rroject_skel - +
+
+
+ {% block content %} + {% endblock %} +
From 2d02bde1bd6a53765cda120ed0271da1283ffe51 Mon Sep 17 00:00:00 2001 From: Nikita Jain Date: Wed, 25 Oct 2017 00:00:28 +0530 Subject: [PATCH 2/3] introducing template inheritance introducing template inheritance by extending the base file --- project_name/templates/404.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project_name/templates/404.html b/project_name/templates/404.html index 15c295c..e80cd62 100644 --- a/project_name/templates/404.html +++ b/project_name/templates/404.html @@ -1 +1,6 @@ -

404 - Not Found

+{% extends "base.html" %} +{% block content %} +

404 - Not Found

+{% endblock %} + + From 86795867c3ca6f9ca1fc40446af4bc67d92ba27d Mon Sep 17 00:00:00 2001 From: Nikita Jain Date: Wed, 25 Oct 2017 00:01:23 +0530 Subject: [PATCH 3/3] introducing template inheritance introducing template inheritance by extending the base file --- project_name/templates/500.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project_name/templates/500.html b/project_name/templates/500.html index 93aa513..ae10ed0 100644 --- a/project_name/templates/500.html +++ b/project_name/templates/500.html @@ -1 +1,6 @@ -

500 - Server Error

+{% extends "base.html" %} +{% block content %} +

500 - Server Error

+{% endblock %} + +