Permalink
Browse files

Merge pull request #2 from ghost/django-1.5

Change the deprecated direct_to_template to render.
  • Loading branch information...
justquick committed Jun 28, 2014
2 parents 6cb0f0c + 40f383c commit 05ae29ff870bc3cd08a91570b7e19f47c9d33929
Showing with 2 additions and 3 deletions.
  1. +2 −3 varnishapp/views.py
View
@@ -1,6 +1,6 @@
from django.http import HttpResponseRedirect
from manager import manager
-from django.views.generic.simple import direct_to_template
+from django.shortcuts import render
from django.conf import settings
def get_stats():
@@ -24,5 +24,4 @@ def management(request):
extra_context = {'stats':stats,
'errors':errors}
- return direct_to_template(request, template='varnish/report.html',
- extra_context=extra_context)
+ return render(request, 'varnish/report.html', extra_context)

0 comments on commit 05ae29f

Please sign in to comment.