old_contents: from django.conf import settings
  from django.contrib import admin
  from django.conf.urls.static import static
  from django.urls import path, re_path, include
  from django.views.generic import TemplateView
  from django.views.decorators.cache import cache_page
  
  admin.autodiscover()
  
  from api import feeds  # noqa: E402
  from core.views import HomeView, MaintenanceView, ReportView, ReportThanksView, TestView  # noqa: E402
  
  MAINTENANCE_MODE = getattr(settings, 'MAINTENANCE_MODE', False)
  if MAINTENANCE_MODE:
      urlpatterns = [
          url(r'.*', MaintenanceView.as_view(), name='maintenance_view'),
      ]
  
  else:
      urlpatterns = [
          re_path(r'^$', cache_page(60 * 5)(HomeView.as_view()), name='home'),
          re_path(r'^leaflets/', include('leaflets.urls')),
          re_path(r'^parties/', include('parties.urls')),
          re_path(r'^person/', include('people.urls')),
          re_path(r'^constituencies/', include('constituencies.urls')),
          re_path(r'^analysis/', include('analysis.urls')),
          re_path(r'^api/', include('api.urls')),
  
          # Feeds
          re_path(r'^feeds/latest/$', feeds.LatestLeafletsFeed(), name='latest_feed'),
          re_path(r'^feeds/constituency/(?P<cons_slug>[\w_\-\.]+)/$', feeds.ConstituencyFeed(), name='constituency_feed'),
  
          # Individual urls
          re_path(r'^about/$', TemplateView.as_view(template_name='core/about.html'), name='about'),
          re_path(r'^donate/$', TemplateView.as_view(template_name='core/donate.html'), name='donate'),
          re_path(r'^press/$', TemplateView.as_view(template_name='core/press.html'), name='press'),
          re_path(r'^report/(?P<pk>\d+)/sent/$', ReportThanksView.as_view(), name='report_abuse_sent'),
          re_path(r'^report/(?P<pk>\d+)/$', ReportView.as_view(), name='report_abuse'),
  
          # Administration URLS
          path('admin', admin.site.urls),
          path('accounts', include('allauth.urls')),
  
          re_path(r'^dc_base_theme', include('dc_theme.urls')),
          re_path(r'^test', TestView.as_view(), name="test"),
      ]
  
  urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
new_contents: from django.conf import settings
  from django.contrib import admin
  from django.conf.urls.static import static
  from django.urls import path, re_path, include
  from django.views.generic import TemplateView
  from django.views.decorators.cache import cache_page
  
  admin.autodiscover()
  
  from api import feeds  # noqa: E402
  from core.views import HomeView, MaintenanceView, ReportView, ReportThanksView, TestView  # noqa: E402
  
  MAINTENANCE_MODE = getattr(settings, 'MAINTENANCE_MODE', False)
  if MAINTENANCE_MODE:
      urlpatterns = [
          re_path(r'.*', MaintenanceView.as_view(), name='maintenance_view'),
      ]
  
  else:
      urlpatterns = [
          re_path(r'^$', cache_page(60 * 5)(HomeView.as_view()), name='home'),
          re_path(r'^leaflets/', include('leaflets.urls')),
          re_path(r'^parties/', include('parties.urls')),
          re_path(r'^person/', include('people.urls')),
          re_path(r'^constituencies/', include('constituencies.urls')),
          re_path(r'^analysis/', include('analysis.urls')),
          re_path(r'^api/', include('api.urls')),
  
          # Feeds
          re_path(r'^feeds/latest/$', feeds.LatestLeafletsFeed(), name='latest_feed'),
          re_path(r'^feeds/constituency/(?P<cons_slug>[\w_\-\.]+)/$', feeds.ConstituencyFeed(), name='constituency_feed'),
  
          # Individual urls
          re_path(r'^about/$', TemplateView.as_view(template_name='core/about.html'), name='about'),
          re_path(r'^donate/$', TemplateView.as_view(template_name='core/donate.html'), name='donate'),
          re_path(r'^press/$', TemplateView.as_view(template_name='core/press.html'), name='press'),
          re_path(r'^report/(?P<pk>\d+)/sent/$', ReportThanksView.as_view(), name='report_abuse_sent'),
          re_path(r'^report/(?P<pk>\d+)/$', ReportView.as_view(), name='report_abuse'),
  
          # Administration URLS
          path('admin', admin.site.urls),
          path('accounts', include('allauth.urls')),
  
          re_path(r'^dc_base_theme', include('dc_theme.urls')),
          re_path(r'^test', TestView.as_view(), name="test"),
      ]
  
  urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: Fix URL typo