old_contents: from django.conf.urls import patterns, url, include
  from django.conf import settings
  from django.contrib import admin
  from django.core.urlresolvers import reverse_lazy
  from django.views.generic.base import RedirectView
  
  import competition
  
  admin.autodiscover()
  
  urlpatterns = patterns(
      '',
  
      url(r'^$', RedirectView.as_view(url=reverse_lazy('competition_list'))),
      url(r'', include(competition.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^admin_tools/', include('admin_tools.urls')),
      url (r'^accounts/login/$',
           'django.contrib.auth.views.login',
           {'template_name': 'accounts/login.html'},
           name='account_login'),
      url (r'^accounts/logout/$',
           'django.contrib.auth.views.logout_then_login',
           name='account_logout'),
      )
  
  if settings.DEBUG:
      urlpatterns += patterns(
          'django.views.static',
          url(r'^qr/(?P<path>.*\.png)$', 'serve',
           {'document_root': settings.QR_DIR}),
          url(r'^static/(?P<path>.*)$', 'serve',
           {'document_root': settings.STATIC_ROOT}),
          url(r'^media/(?P<path>.*)$', 'serve',
           {'document_root': settings.MEDIA_ROOT}),
      )
  
new_contents: from django.conf.urls import patterns, url, include
  from django.conf import settings
  from django.contrib import admin
  from django.core.urlresolvers import reverse_lazy
  from django.views.generic.base import RedirectView
  
  import competition
  
  admin.autodiscover()
  
  urlpatterns = patterns(
      '',
  
      url(r'^$', RedirectView.as_view(permanent=True,url=reverse_lazy('competition_list'))),
      url(r'', include(competition.urls)),
      url(r'^admin/', include(admin.site.urls)),
      url(r'^admin_tools/', include('admin_tools.urls')),
      url (r'^accounts/login/$',
           'django.contrib.auth.views.login',
           {'template_name': 'accounts/login.html'},
           name='account_login'),
      url (r'^accounts/logout/$',
           'django.contrib.auth.views.logout_then_login',
           name='account_logout'),
      )
  
  if settings.DEBUG:
      urlpatterns += patterns(
          'django.views.static',
          url(r'^qr/(?P<path>.*\.png)$', 'serve',
           {'document_root': settings.QR_DIR}),
          url(r'^static/(?P<path>.*)$', 'serve',
           {'document_root': settings.STATIC_ROOT}),
          url(r'^media/(?P<path>.*)$', 'serve',
           {'document_root': settings.MEDIA_ROOT}),
      )
  
subject: Set RedirectView.permanent to True to match old default settings