old_contents: from django.conf.urls import patterns, include, url
  from django.conf import settings
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf.urls.static import static
  from django.views.generic import TemplateView
  
  from oscar.app import shop
  from oscar.views import handler500, handler404, handler403
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      (r'^admin/', include(admin.site.urls)),
      (r'^gateway/', include('apps.gateway.urls')),
      (r'', include(shop.urls)),
  )
  
  # Allow rosetta to be used to add translations
  if 'rosetta' in settings.INSTALLED_APPS:
      urlpatterns += patterns('',
          (r'^rosetta/', include('rosetta.urls')),
      )
  
  if settings.DEBUG:
      # Server statics
      urlpatterns += staticfiles_urlpatterns()
      # Serve uploaded media
      urlpatterns += static(settings.MEDIA_URL,
                            document_root=settings.MEDIA_ROOT)
      # Test error pages
      urlpatterns += patterns('',
          url(r'^403$', TemplateView.as_view(template_name='403.html')),
          url(r'^404$', TemplateView.as_view(template_name='404.html')),
          url(r'^500$', TemplateView.as_view(template_name='500.html')),
      )
  
new_contents: from django.conf.urls import patterns, include, url
  from django.conf import settings
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf.urls.static import static
  
  from oscar.app import shop
  
  # These simply need to be imported into this namespace.  Ignore the PEP8
  # warning that they aren't used.
  from oscar.views import handler500, handler404, handler403
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      (r'^admin/', include(admin.site.urls)),
      # Custom functionality to allow dashboard users to be created
      (r'^gateway/', include('apps.gateway.urls')),
      (r'', include(shop.urls)),
  )
  
  # Allow rosetta to be used to add translations
  if 'rosetta' in settings.INSTALLED_APPS:
      urlpatterns += patterns('',
          (r'^rosetta/', include('rosetta.urls')),
      )
  
  if settings.DEBUG:
      # Server statics and uploaded media
      urlpatterns += staticfiles_urlpatterns()
      urlpatterns += static(settings.MEDIA_URL,
                            document_root=settings.MEDIA_ROOT)
      # Allow error pages to be tested
      urlpatterns += patterns('',
          url(r'^403$', handler403),
          url(r'^404$', handler404),
          url(r'^500$', handler500)
      )
  
subject: Document the sandbox urls.py