Permalink
Browse files

Using django.shortcuts.render()

  • Loading branch information...
davedash committed Dec 1, 2011
1 parent f4909d6 commit 8ec4c727f74d2b61fb387ccab33a1dbafa0c46ef
Showing with 4 additions and 7 deletions.
  1. +4 −7 apps/myadmin/views.py
View
@@ -1,9 +1,7 @@
from django.contrib import admin
-from django.shortcuts import redirect
+from django.shortcuts import redirect, render
from django.views import debug
-import jingo
-
import api.tasks
import themes.tasks
@@ -15,7 +13,7 @@ def recluster(request):
themes.tasks.recluster.delay()
return redirect('myadmin.recluster')
- return jingo.render(request, 'myadmin/recluster.html')
+ return render(request, 'myadmin/recluster.html')
@admin.site.admin_view
@@ -26,13 +24,12 @@ def export_tsv(request):
else:
data = {}
- return jingo.render(request, 'myadmin/export_tsv.html', data)
+ return render(request, 'myadmin/export_tsv.html', data)
@admin.site.admin_view
def settings(request):
settings_dict = debug.get_safe_settings()
- return jingo.render(request, 'myadmin/settings.html',
+ return render(request, 'myadmin/settings.html',
{'settings_dict': settings_dict})
-

0 comments on commit 8ec4c72

Please sign in to comment.