I am trying to render a template inside a function. Below is my settings.py
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['E:\Django\googlemaps\templates\waypoints'],
'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',
],
},
},
]
and views.py
from django.shortcuts import render_to_response
def index(request):
'Display map'
return render_to_response('waypoints\index.html')
And below is my error when i run the server.Please help me.
http://dpaste.com/0SZAR4H