from django.shortcuts import render
from django.http import HttpResponse
from django.template import RequestContext, loader


def index(request):
  template = loader.get_template('main/index.html')
  return HttpResponse(template.render())

from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render


def index(request):
  return render(request,"main/index.html")

switch view to use shortcut