old_contents: """URLs used by the CMS news app."""
  
  from django.conf.urls import patterns, url
  
  from . import views
  
  
  urlpatterns = patterns(
      "{{cookiecutter.repo_name}}.apps.news.views",
  
      url(r"^$", views.ArticleArchiveView.as_view(), name="article_archive"),
  
      url(r"^feed/$", views.ArticleFeedView.as_view(), name="article_feed"),
  
      url("^(?P<year>\d+)/$", views.ArticleYearArchiveView.as_view(), name="article_year_archive"),
  
      url("^(?P<year>\d+)/(?P<month>\w+)/$", views.ArticleMonthArchiveView.as_view(), name="article_month_archive"),
  
      url("^(?P<year>\d+)/(?P<month>\w+)/(?P<day>\d+)/$", views.ArticleDayArchiveView.as_view(), name="article_day_archive"),
  
      url("^(?P<year>\d+)/(?P<month>\w+)/(?P<day>\d+)/(?P<slug>[^/]+)/$", views.ArticleDetailView.as_view(), name="article_detail"),
  
      url("^(?P<slug>[^/]+)/$", views.ArticleCategoryArchiveView.as_view(), name="article_category_archive"),
  
  )
  
new_contents: """URLs used by the CMS news app."""
  
  from django.conf.urls import url
  
  from . import views
  
  
  urlpatterns = [
      url(r"^$", views.ArticleArchiveView.as_view(), name="article_archive"),
      url(r"^feed/$", views.ArticleFeedView.as_view(), name="article_feed"),
      url("^(?P<year>\d+)/$", views.ArticleYearArchiveView.as_view(), name="article_year_archive"),
      url("^(?P<year>\d+)/(?P<month>\w+)/$", views.ArticleMonthArchiveView.as_view(), name="article_month_archive"),
      url("^(?P<year>\d+)/(?P<month>\w+)/(?P<day>\d+)/$", views.ArticleDayArchiveView.as_view(), name="article_day_archive"),
      url("^(?P<year>\d+)/(?P<month>\w+)/(?P<day>\d+)/(?P<slug>[^/]+)/$", views.ArticleDetailView.as_view(), name="article_detail"),
      url("^(?P<slug>[^/]+)/$", views.ArticleCategoryArchiveView.as_view(), name="article_category_archive"),
  ]
  
subject: Switch to the new URLs.py style. Ref onespacemedia/cms#80.