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'),
)

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

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

Use django.shortcuts.render instead of TemplateView
Use django.shortcuts.render instead of TemplateView
  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'),
+     url(r'^simple/$', 'django.shortcuts.render', name='simple-direct'),
  )
  
Use django.shortcuts.render instead of TemplateView
## Code Before:
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'),
)

## Instruction:
Use django.shortcuts.render instead of TemplateView
## Code After:
from django.conf.urls.defaults import patterns, url

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