from django.template.defaulttags import csrf_token
from django.shortcuts import render

@csrf_token
def home(request):
    """home page"""
return render(request, 'template.html', {})
Django - CSRF verification failed