old_contents: from __future__ import unicode_literals
  
  from blog.views import BlogListView, BlogDetailView
  from django.conf import settings
  from django.conf.urls import include, url
  from django.conf.urls.static import static
  from django.contrib import admin
  
  from djadmin2.site import djadmin2_site
  
  admin.autodiscover()
  djadmin2_site.autodiscover()
  
  urlpatterns = [
      url(r'^admin2/', include(djadmin2_site.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^blog/', BlogListView.as_view(template_name="blog/blog_list.html"), name='blog_list'),
      url(r'^blog/detail(?P<pk>\d+)/$', BlogDetailView.as_view(template_name="blog/blog_detail.html"), name='blog_detail'),
      url(r'^$', BlogListView.as_view(template_name="blog/home.html"), name='home'),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
new_contents: from __future__ import unicode_literals
  
  from blog.views import BlogListView, BlogDetailView
  from django.conf import settings
  from django.conf.urls import include, url
  from django.conf.urls.static import static
  from django.contrib import admin
  
  from djadmin2.site import djadmin2_site
  
  
  djadmin2_site.autodiscover()
  
  urlpatterns = [
      url(r'^admin2/', include(djadmin2_site.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^blog/', BlogListView.as_view(template_name="blog/blog_list.html"),
          name='blog_list'),
      url(r'^blog/detail(?P<pk>\d+)/$',
          BlogDetailView.as_view(template_name="blog/blog_detail.html"),
          name='blog_detail'),
      url(r'^$', BlogListView.as_view(template_name="blog/home.html"),
          name='home'),
  ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: fix pep8 errors