From: Bryan Date: Sun, 12 Jan 2014 05:34:06 +0000 (+0000) Subject: removing deprecated direct_to_template X-Git-Tag: release-20150131~278 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=351c57a02d4a23e849c53f8f2bf973996619ff7e;p=oweals%2Fkarmaworld.git removing deprecated direct_to_template --- diff --git a/karmaworld/urls.py b/karmaworld/urls.py index 1718cfc..30cc7a7 100644 --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@ -6,7 +6,7 @@ from django.contrib import admin from django.conf import settings from django.conf.urls.defaults import patterns, include, url -from django.views.generic.simple import direct_to_template +from django.views.generic.base import TemplateView from karmaworld.apps.courses.models import Course from karmaworld.apps.courses.views import AboutView, flag_course @@ -59,7 +59,7 @@ urlpatterns = patterns('', url(r'^moderator/', include(moderator.site.urls)), ## Single-serving page URLpatterns - url(r'^terms/$', direct_to_template, { 'template': 'terms.html' }, name='terms'), + url(r'^terms/$', TemplateView.as_view(template_name='terms.html'), name='terms'), url(r'^about/$', AboutView.as_view(), name='about'), # All Auth