old_contents: from __future__ import absolute_import
  
  from django.conf import settings
  from django.conf.urls.defaults import *
  from django.contrib import admin
  admin.autodiscover()
  
  from comics.core.feeds import ComicFeed
  from comics.core.urls import COMIC
  from comics.sets.feeds import SetFeed
  from comics.sets.urls import SET
  
  urlpatterns = patterns('',
      # Comic core
      (r'^', include('comics.core.urls')),
  
      # Comic sets
      (r'^s/', include('comics.sets.urls')),
  
      # Feedback app
      (r'^feedback/', include('comics.feedback.urls')),
  
      # Comic feeds
      url(r'^feeds/c/%s/$' % (COMIC,), ComicFeed(), name='comic-feed'),
      url(r'^feeds/s/%s/$' % (SET,), SetFeed(), name='set-feed'),
  
      # Django admin
      (r'^admin/media/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.ADMIN_MEDIA_ROOT}),
      (r'^admin/doc/', include('django.contrib.admindocs.urls')),
      (r'^admin/(.*)', admin.site.root),
  )
  
  # Comic search
  if 'comics.search' in settings.INSTALLED_APPS:
      urlpatterns += patterns('',
          (r'^search/', include('comics.search.urls')),
      )
  
  # Let Django host media if doing local development on runserver
  if not settings.MEDIA_URL.startswith('http'):
      urlpatterns += patterns('',
          (r'^media/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': settings.MEDIA_ROOT}),
      )
  
new_contents: from __future__ import absolute_import
  
  from django.conf import settings
  from django.conf.urls.defaults import *
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  admin.autodiscover()
  
  from comics.core.feeds import ComicFeed
  from comics.core.urls import COMIC
  from comics.sets.feeds import SetFeed
  from comics.sets.urls import SET
  
  urlpatterns = patterns('',
      # Comic core
      (r'^', include('comics.core.urls')),
  
      # Comic sets
      (r'^s/', include('comics.sets.urls')),
  
      # Feedback app
      (r'^feedback/', include('comics.feedback.urls')),
  
      # Comic feeds
      url(r'^feeds/c/%s/$' % (COMIC,), ComicFeed(), name='comic-feed'),
      url(r'^feeds/s/%s/$' % (SET,), SetFeed(), name='set-feed'),
  
      # Django admin
      (r'^admin/doc/', include('django.contrib.admindocs.urls')),
      (r'^admin/', include(admin.site.urls)),
  )
  
  # Comic search
  if 'comics.search' in settings.INSTALLED_APPS:
      urlpatterns += patterns('',
          (r'^search/', include('comics.search.urls')),
      )
  
  # Let Django host media if doing local development on runserver
  if not settings.MEDIA_URL.startswith('http'):
      urlpatterns += patterns('',
          (r'^media/(?P<path>.*)$', 'django.views.static.serve',
              {'document_root': settings.MEDIA_ROOT}),
      )
  
  urlpatterns += staticfiles_urlpatterns()
  
subject: Replace ADMIN_MEDIA_ROOT with staticfiles media hosting