django.template to django.shortcuts

from django.template import render was not working, changed it to from django.shortcuts import render and it worked like a charm.