old_contents: from django.conf import settings
  from django.conf.urls import patterns, include, url
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.views.generic.base import TemplateView
  
  urlpatterns = [
      # Examples:
      url(r'^$', TemplateView.as_view(template_name='home.html'), name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
  ]
  
  if settings.DEBUG:
      urlpatterns = urlpatterns + \
          static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
      import debug_toolbar
      urlpatterns += patterns(
          '',
          url(r'^__debug__/', include(debug_toolbar.urls)),
      )
new_contents: from django.conf import settings
  from django.conf.urls import patterns, include, url
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.views.generic.base import TemplateView
  
  urlpatterns = [
      # Examples:
      url(r'^$', TemplateView.as_view(template_name='pages/home.html'), name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
  ]
  
  if settings.DEBUG:
      urlpatterns = urlpatterns + \
          static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
      import debug_toolbar
      urlpatterns += patterns(
          '',
          url(r'^__debug__/', include(debug_toolbar.urls)),
      )
subject: fix template path in urls