Mercurial > public > sg101
diff membermap/views.py @ 1031:e1c03da72818
Get rid of some warnings in Django 1.8.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Dec 2015 22:18:59 -0600 |
parents | 6164cc091649 |
children | 26f2b83e7468 |
line wrap: on
line diff
--- a/membermap/views.py Wed Dec 16 21:21:33 2015 -0600 +++ b/membermap/views.py Sun Dec 20 22:18:59 2015 -0600 @@ -4,9 +4,8 @@ """ import json -from django.shortcuts import render_to_response +from django.shortcuts import render from django.template.loader import render_to_string -from django.template import RequestContext from django.http import HttpResponse from django.http import HttpResponseBadRequest from django.http import HttpResponseForbidden @@ -37,10 +36,9 @@ else: form = MapEntryForm() - return render_to_response('membermap/index.html', { + return render(request, 'membermap/index.html', { 'form': form, - }, - context_instance = RequestContext(request)) + }) def query(request):