old_contents: 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 django.views.generic.base import RedirectView
  
  urlpatterns = [
      # Redirect old links:
      url(r'^pages/in-your-city/$',
          RedirectView.as_view(url='/organize/', permanent=True)),
      url(r'^admin$', RedirectView.as_view(url='/admin/', permanent=True)),
      url(r'^admin/core/eventpage/(\d+)/',
          RedirectView.as_view(pattern_name='admin:core_event_change')),
      # Redirection for old CoC's flatpages:
      url(r'^pages/coc/$', RedirectView.as_view(url='/coc/', permanent=True)),
      url(r'^pages/coc-es-la/$', RedirectView.as_view(url='/coc/es/', permanent=True)),
      url(r'^pages/coc-fr/$', RedirectView.as_view(url='/coc/fr/', permanent=True)),
      url(r'^pages/coc-kr/$', RedirectView.as_view(url='/coc/ko/', permanent=True)),
      url(r'^pages/coc-pt-br/$', RedirectView.as_view(url='/coc/pt-br/', permanent=True)),
      url(r'^pages/coc/rec/$', RedirectView.as_view(url='/coc/pt-br/', permanent=True)),
  
  
      # Admin link for password reset
      # See: https://github.com/darklow/django-suit/blob/92a745d72935622220eca80edfce779419c30094/suit/templates/admin/login.html#L61
      url(r'^admin/password_reset/$',
          RedirectView.as_view(url='/account/password_reset', permanent=True),
          name='admin_password_reset'),
  
      # Regular links:
      url(r'^admin/', include(admin.site.urls)),
      url(r'^pages/', include('django.contrib.flatpages.urls')),
      url(r'^account/', include('django.contrib.auth.urls')),
      url(r'^organize/', include('organize.urls', namespace='organize')),
      url(r'^story/', include('story.urls', namespace='story')),
      url(r'^sponsor/', include('sponsor.urls', namespace='sponsor')),
      url(r'', include('applications.urls', namespace='applications')),
      url(r'', include('core.urls', namespace='core')),
  ]
  
  if settings.DEBUG:
      urlpatterns += static(settings.STATIC_URL,
                            document_root=settings.STATIC_ROOT)
      urlpatterns += static(settings.MEDIA_URL,
                            document_root=settings.MEDIA_ROOT)
  
new_contents: 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 django.views.generic.base import RedirectView
  
  urlpatterns = [
      # Redirect old links:
      url(r'^pages/in-your-city/$',
          RedirectView.as_view(url='/organize/', permanent=True)),
      url(r'^admin$', RedirectView.as_view(url='/admin/', permanent=True)),
      url(r'^admin/core/eventpage/(\d+)/',
          RedirectView.as_view(pattern_name='admin:core_event_change')),
      # Redirection for old CoC's flatpages:
      url(r'^pages/coc/$', RedirectView.as_view(url='/coc/', permanent=True)),
      url(r'^pages/coc-es-la/$', RedirectView.as_view(url='/coc/es/', permanent=True)),
      url(r'^pages/coc-fr/$', RedirectView.as_view(url='/coc/fr/', permanent=True)),
      url(r'^pages/coc-kr/$', RedirectView.as_view(url='/coc/ko/', permanent=True)),
      url(r'^pages/coc-pt-br/$', RedirectView.as_view(url='/coc/pt-br/', permanent=True)),
      url(r'^pages/coc/rec/$', RedirectView.as_view(url='/coc/pt-br/', permanent=True)),
  
  
      # Admin link for password reset
      # See: https://github.com/darklow/django-suit/blob/92a745d72935622220eca80edfce779419c30094/suit/templates/admin/login.html#L61
      url(r'^admin/password_reset/$',
          RedirectView.as_view(url='/account/password_reset', permanent=True),
          name='admin_password_reset'),
  
      # Regular links:
      url(r'^admin/', include(admin.site.urls)),
      url(r'^pages/', include('django.contrib.flatpages.urls')),
      url(r'^account/', include('django.contrib.auth.urls')),
      url(r'^organize/', include('organize.urls', namespace='organize')),
      url(r'^story/', include('story.urls', namespace='story')),
      url(r'', include('sponsor.urls', namespace='sponsor')),
      url(r'', include('applications.urls', namespace='applications')),
      url(r'', include('core.urls', namespace='core')),
  ]
  
  if settings.DEBUG:
      urlpatterns += static(settings.STATIC_URL,
                            document_root=settings.STATIC_ROOT)
      urlpatterns += static(settings.MEDIA_URL,
                            document_root=settings.MEDIA_ROOT)
  
subject: Update sponsor urls to follow old urls