old_contents: from django.conf.urls import patterns, url
  
  from announcements.views import detail, dismiss
  from announcements.views import CreateAnnouncementView, UpdateAnnouncementView
  from announcements.views import DeleteAnnouncementView, AnnouncementListView
  
  urlpatterns = patterns(
      "",
      url(r"^$", AnnouncementListView.as_view(), name="announcements_list"),
      url(r"^announcement/create/$", CreateAnnouncementView.as_view(), name="announcements_create"),
      url(r"^announcement/(?P<pk>\d+)/$", detail, name="announcements_detail"),
      url(r"^announcement/(?P<pk>\d+)/hide/$", dismiss, name="announcements_dismiss"),
      url(r"^announcement/(?P<pk>\d+)/update/$", UpdateAnnouncementView.as_view(),
          name="announcements_update"),
      url(r"^announcement/(?P<pk>\d+)/delete/$", DeleteAnnouncementView.as_view(),
          name="announcements_delete"),
  )
  
new_contents: from django.conf.urls import url
  
  from announcements.views import detail, dismiss
  from announcements.views import CreateAnnouncementView, UpdateAnnouncementView
  from announcements.views import DeleteAnnouncementView, AnnouncementListView
  
  urlpatterns = [
      url(r"^$", AnnouncementListView.as_view(), name="announcements_list"),
      url(r"^announcement/create/$", CreateAnnouncementView.as_view(), name="announcements_create"),
      url(r"^announcement/(?P<pk>\d+)/$", detail, name="announcements_detail"),
      url(r"^announcement/(?P<pk>\d+)/hide/$", dismiss, name="announcements_dismiss"),
      url(r"^announcement/(?P<pk>\d+)/update/$", UpdateAnnouncementView.as_view(),
          name="announcements_update"),
      url(r"^announcement/(?P<pk>\d+)/delete/$", DeleteAnnouncementView.as_view(),
          name="announcements_delete"),
  ]
  
subject: Remove use of deprecated django.conf.urls.patterns.