old_contents: from django.conf import settings
  from django.conf.urls.defaults import *
  from django.views.decorators.cache import cache_page
  
  from comics.core import views
  
  YEAR = r'(?P<year>(19|20)\d{2})'
  MONTH = r'(?P<month>(0*[1-9]|1[0-2]))'
  DAY = r'(?P<day>(0*[1-9]|[1-2]\d|3[0-1]))'
  DAYS = r'\+(?P<days>\d+)'
  COMIC = r'(?P<comic>[0-9a-z-_]+)'
  
  urlpatterns = patterns('',
      # View top comics
      url(r'^$', views.top_latest, name='top-latest'),
      url(r'^%s/$' % (DAYS,), views.top_show, name='top-last-days'),
      url(r'^%s/$' % (YEAR,), views.top_year, name='top-year'),
      url(r'^%s/%s/$' % (YEAR, MONTH), views.top_show, name='top-month'),
      url(r'^%s/%s/%s/$' % (YEAR, MONTH, DAY), views.top_show, name='top-date'),
      url(r'^%s/%s/%s/%s/$' % (YEAR, MONTH, DAY, DAYS),
          views.top_show, name='top-date-days'),
  
      # View one specific comic
      url(r'^c/$',
          views.comic_list, name='comic-list'),
      url(r'^c/%s/$' % (COMIC,),
          views.comic_latest, name='comic-latest'),
      url(r'^c/%s/%s/$' % (COMIC, DAYS),
          views.comic_show, name='comic-last-days'),
      url(r'^c/%s/%s/$' % (COMIC, YEAR),
          views.comic_year, name='comic-year'),
      url(r'^c/%s/%s/%s/$' % (COMIC, YEAR, MONTH),
          views.comic_show, name='comic-month'),
      url(r'^c/%s/%s/%s/%s/$' % (COMIC, YEAR, MONTH, DAY),
          views.comic_show, name='comic-date'),
      url(r'^c/%s/%s/%s/%s/%s/$' % (COMIC, YEAR, MONTH, DAY, DAYS),
          views.comic_show, name='comic-date-days'),
  
      # Status page
      url(r'^status/$', cache_page(views.status, 3600), name='status'),
  
      # About page
      url(r'^about/$', views.about, name='about'),
  
      # Redirect
      url(r'^redirect/%s/$' % (COMIC,), views.redirect, name='redirect'),
  
      # We do not like robots
      url(r'^robots.txt$', views.robots, name='robots'),
  )
  
  if settings.DEBUG:
      urlpatterns += patterns('',
          url(r'^widgets/$', views.widgets, name='widgets'),
      )
  
new_contents: from django.conf import settings
  from django.conf.urls.defaults import *
  
  from comics.core import views
  
  YEAR = r'(?P<year>(19|20)\d{2})'
  MONTH = r'(?P<month>(0*[1-9]|1[0-2]))'
  DAY = r'(?P<day>(0*[1-9]|[1-2]\d|3[0-1]))'
  DAYS = r'\+(?P<days>\d+)'
  COMIC = r'(?P<comic>[0-9a-z-_]+)'
  
  urlpatterns = patterns('',
      # View top comics
      url(r'^$', views.top_latest, name='top-latest'),
      url(r'^%s/$' % (DAYS,), views.top_show, name='top-last-days'),
      url(r'^%s/$' % (YEAR,), views.top_year, name='top-year'),
      url(r'^%s/%s/$' % (YEAR, MONTH), views.top_show, name='top-month'),
      url(r'^%s/%s/%s/$' % (YEAR, MONTH, DAY), views.top_show, name='top-date'),
      url(r'^%s/%s/%s/%s/$' % (YEAR, MONTH, DAY, DAYS),
          views.top_show, name='top-date-days'),
  
      # View one specific comic
      url(r'^c/$',
          views.comic_list, name='comic-list'),
      url(r'^c/%s/$' % (COMIC,),
          views.comic_latest, name='comic-latest'),
      url(r'^c/%s/%s/$' % (COMIC, DAYS),
          views.comic_show, name='comic-last-days'),
      url(r'^c/%s/%s/$' % (COMIC, YEAR),
          views.comic_year, name='comic-year'),
      url(r'^c/%s/%s/%s/$' % (COMIC, YEAR, MONTH),
          views.comic_show, name='comic-month'),
      url(r'^c/%s/%s/%s/%s/$' % (COMIC, YEAR, MONTH, DAY),
          views.comic_show, name='comic-date'),
      url(r'^c/%s/%s/%s/%s/%s/$' % (COMIC, YEAR, MONTH, DAY, DAYS),
          views.comic_show, name='comic-date-days'),
  
      # Status page
      url(r'^status/$', views.status, name='status'),
  
      # About page
      url(r'^about/$', views.about, name='about'),
  
      # Redirect
      url(r'^redirect/%s/$' % (COMIC,), views.redirect, name='redirect'),
  
      # We do not like robots
      url(r'^robots.txt$', views.robots, name='robots'),
  )
  
  if settings.DEBUG:
      urlpatterns += patterns('',
          url(r'^widgets/$', views.widgets, name='widgets'),
      )
  
subject: Revert "Cache the status page for one hour. Quite expensive page"