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.staticfiles.urls import staticfiles_urlpatterns
  from django.views.generic import TemplateView
  
  from cbv.views import HomeView
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', HomeView.as_view(), name='home'),
      url(r'^projects/', include('cbv.urls')),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^', include('cbv.shortcut_urls'), {'package': 'Django'}),
  )
  
  urlpatterns += staticfiles_urlpatterns() + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
  if settings.DEBUG:
      urlpatterns += patterns('',
          url(r'^404/', TemplateView.as_view(template_name='404.html')),
          url(r'^500/', TemplateView.as_view(template_name='500.html')),
          url(r'^404/$', TemplateView.as_view(template_name='404.html')),
          url(r'^500/$', TemplateView.as_view(template_name='500.html')),
      )
  
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.staticfiles.urls import staticfiles_urlpatterns
  from django.views.generic import TemplateView
  
  from cbv.views import HomeView
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url(r'^$', HomeView.as_view(), name='home'),
      url(r'^projects/', include('cbv.urls')),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^', include('cbv.shortcut_urls'), {'package': 'Django'}),
  )
  
  urlpatterns += staticfiles_urlpatterns() + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
  if settings.DEBUG:
      urlpatterns += patterns('',
          url(r'^404/$', TemplateView.as_view(template_name='404.html')),
          url(r'^500/$', TemplateView.as_view(template_name='500.html')),
      )
  
subject: Remove accidental url duplication.