old_contents: from django.conf.urls import url, include
  from django.contrib import admin
  from django.conf import settings
  from django.views.generic import TemplateView
  
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
  
      url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
  
      url(r'^', include('allauth.urls')),
      url(r'^', include('accounts.urls')),
      url(r'^', include('sections.urls')),
  ]
  
  if settings.DEBUG:
      import debug_toolbar
      urlpatterns += [
          url(r'^__debug__/', include(debug_toolbar.urls)),
      ]
  
new_contents: from django.conf.urls import url, include
  from django.contrib import admin
  from django.conf import settings
  from django.conf.urls.static import static
  from django.views.generic import TemplateView
  
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
  
      url(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
  
      url(r'^', include('allauth.urls')),
      url(r'^', include('accounts.urls')),
      url(r'^', include('sections.urls')),
  ]
  
  if settings.DEBUG:
      import debug_toolbar
      urlpatterns += [
          url(r'^__debug__/', include(debug_toolbar.urls)),
      ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: allow serving media dir in devel mode