from django.conf.urls.defaults import patterns, url

urlpatterns = patterns('django.views.generic.simple',
    url(r'^simple/$', 'direct_to_template', name='simple-direct'),
)

from django.conf.urls.defaults import patterns, url
from django.views.generic import TemplateView

urlpatterns = patterns('django.views.generic.simple',
    url(r'^simple/$', TemplateView.as_view(), name='simple-direct'),
)

Change direct_to_template view to TemplateView.as_view()
Change direct_to_template view to TemplateView.as_view()

Required for Django 1.5 compatibility during tests
