<filename>home/views.py
from django.shortcuts import render
from django.http import HttpResponse

from django.template import loader


# Create your views here.

def index(request):

    template = loader.get_template('home/index.html')


    return HttpResponse(template.render(request=request))


<filename>home/views.py
from django.shortcuts import render
from django.http import HttpResponse

from django.template import loader


# Create your views here.

def index(request):

    template = loader.get_template('home/index.html')


    return HttpResponse(template.render(request=request))


# Create your views here.