Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

#6 Django tutorials | Django Template Language – part 2

227.9K views on YouTube

In this lecture we will talk about :

#1How to use one html file into another html file
#2How to use jinja to add one html content into another html content

In the previous video we talk about DTL
we print dynamic text using DTL

Inside templates we create another file
i..e base.html
— using this file we can extend it into home.html
and we can use the same header and footer in all the pages

#1 How to use one html file into another html file
— create a base.html file in templates folder
— inside base.html we can add some html code
— now we can extend this base.html into home.html

#2 How to use jinja to add one html content into another html content
— we have jinja to add one html content into another html content
— using {% extends “base.html” %} we can extend the base.html into home.html and about.html
— between {% block content %} and {% endblock %} we can add the content of base.html into home.html

Python Tutorials for beginner : https://bit.ly/2qfhUCp
Django Tutorials : https://www.youtube.com/watch?v=SIyxjRJ8VNY&list=PLsyeobzWxl7r2ukVgTqIQcl-1T0C2mzau

Github :- https://github.com/navinreddy20/Python-

Django is a high-level Python-based free and open-source web framework, which follows the model-view-template (MVT) architectural pattern.
It is maintained by the Django Software Foundation (DSF).
Django’s primary goal is to ease the creation of complex, database-driven websites.
Some well-known sites that use Django include the Public Broadcasting Service, Instagram, Mozilla, The Washington Times, Disqus, Bitbucket, and Nextdoor.

In this video we will see:
Creating common theme for all the pages
Adding Jinja extension
Importing the settings or external files through Jinja extension

Check out our courses:

AI Powered DevOps with AWS – Live Course :- https://go.telusko.com/AIDevOps-AWS
Coupon: TELUSKO10 (10% Discount)

Complete Java Developer Course Batch-4: https://go.telusko.com/Complete4
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)

Check out our website: www.telusko.com

Donation & Support:
Indian Payment : https://www.instamojo.com/@NavinReddy/
PayPal Id : navinreddy20
Patreon : navinreddy20