Templates in Django | Django Template Language (DTL)

Опубликовано: 13 Март 2026
на канале: SkillsHats
217
2

In this video, We will learn about the Django templates.

What is Django Templates?
A Django template is a text document or a Python string marked-up using the Django template language. Some constructs are recognised and interpreted by the template engine. The main ones are variables and tags.

Configuration:
1. Create "templates" folder inside the root of the project
2. Templates engines are configured with the TEMPLATES setting.
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / "templates"], ← Define templates folder here...
'APP_DIRS': True,
'OPTIONS': {

},
},
]

👍 If you enjoyed this content, give the video a like. If you want to watch more upcoming videos, consider subscribing to the channel! →    / @skillshats  

🛝 DJANGO PLAYLIST:
   • Django  

🎬 RECOMMENDED VIDEOS:
Django Models:
→    • Add record in Django model | Python  
→    • Add record in Django model | Python  
→    • Update & Delete record in Django Model | P...  

䷐ FOLLOW US:
Website: https://skillshats.com
Twitter:   / skillshats  

🏷 TAGS:
#python #django #django-templates

Thanks!!
Enjoy 🤗