a new dir inside our project not our sub-project named dir.

it’s called templates!
now, let’s add the entry in settings.py
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]inside the template, let’s add an HTML and link it!
from django.shortcuts import render
def index(request):
params = {"name": "sharafat", "location": "Bangladesh"}
return render(request, 'index.html', params)here we can pass vars like param