old_contents: from django.conf.urls.defaults import patterns, url
  
  from .views import (
      LocationsListView,
      NewLocationView,
      EditLocationView,
      FacilitySyncView,
      LocationImportView,
      LocationImportStatusView,
      LocationSettingsView,
      LocationFieldsView,
      ProductsPerLocationView,
  )
  
  settings_urls = patterns('corehq.apps.locations.views',
      url(r'^$', 'default', name='default_locations_view'),
      url(r'^list/$', LocationsListView.as_view(), name=LocationsListView.urlname),
      url(r'^location_settings/$', LocationSettingsView.as_view(), name=LocationSettingsView.urlname),
      url(r'^sync_facilities/$', FacilitySyncView.as_view(), name=FacilitySyncView.urlname),
      url(r'^sync_facilities_async/$', 'sync_facilities', name='sync_facilities_with_locations'),
      url(r'^import/$', LocationImportView.as_view(), name=LocationImportView.urlname),
      url(r'^import_status/(?P<download_id>[0-9a-fA-Z]{25,32})/$', LocationImportStatusView.as_view(), name=LocationImportStatusView.urlname),
      url(r'^location_importer_job_poll/(?P<download_id>[0-9a-fA-Z]{25,32})/$',
          'location_importer_job_poll', name='location_importer_job_poll'),
      url(r'^export_locations/$', 'location_export', name='location_export'),
      url(r'^sync_openlmis/$', 'sync_openlmis', name='sync_openlmis'),
      url(r'^new/$', NewLocationView.as_view(), name=NewLocationView.urlname),
      url(r'^fields/$', LocationFieldsView.as_view(), name=LocationFieldsView.urlname),
      url(r'^products/$', ProductsPerLocationView.as_view(), name=ProductsPerLocationView.urlname),
      url(r'^archive/(?P<loc_id>[\w-]+)/$', 'archive_location', name='archive_location'),
      url(r'^unarchive/(?P<loc_id>[\w-]+)/$', 'unarchive_location', name='unarchive_location'),
      url(r'^(?P<loc_id>[\w-]+)/$', EditLocationView.as_view(), name=EditLocationView.urlname),
  )
  
new_contents: from django.conf.urls.defaults import patterns, url
  
  from .views import (
      LocationsListView,
      NewLocationView,
      EditLocationView,
      FacilitySyncView,
      LocationImportView,
      LocationImportStatusView,
      LocationSettingsView,
      LocationFieldsView,
      ProductsPerLocationView,
  )
  
  settings_urls = patterns('corehq.apps.locations.views',
      url(r'^$', 'default', name='default_locations_view'),
      url(r'^list/$', LocationsListView.as_view(), name=LocationsListView.urlname),
      url(r'^location_settings/$', LocationSettingsView.as_view(), name=LocationSettingsView.urlname),
      url(r'^sync_facilities/$', FacilitySyncView.as_view(), name=FacilitySyncView.urlname),
      url(r'^sync_facilities_async/$', 'sync_facilities', name='sync_facilities_with_locations'),
      url(r'^import/$', LocationImportView.as_view(), name=LocationImportView.urlname),
      url(r'^import_status/(?P<download_id>[0-9a-fA-Z]{25,32})/$', LocationImportStatusView.as_view(), name=LocationImportStatusView.urlname),
      url(r'^location_importer_job_poll/(?P<download_id>[0-9a-fA-Z]{25,32})/$',
          'location_importer_job_poll', name='location_importer_job_poll'),
      url(r'^export_locations/$', 'location_export', name='location_export'),
      url(r'^sync_openlmis/$', 'sync_openlmis', name='sync_openlmis'),
      url(r'^new/$', NewLocationView.as_view(), name=NewLocationView.urlname),
      url(r'^fields/$', LocationFieldsView.as_view(), name=LocationFieldsView.urlname),
      url(r'^(?P<loc_id>[\w-]+)/archive/$', 'archive_location', name='archive_location'),
      url(r'^(?P<loc_id>[\w-]+)/unarchive/$', 'unarchive_location', name='unarchive_location'),
      url(r'^(?P<loc_id>[\w-]+)/products/$',
          ProductsPerLocationView.as_view(),
          name=ProductsPerLocationView.urlname),
      url(r'^(?P<loc_id>[\w-]+)/$', EditLocationView.as_view(), name=EditLocationView.urlname),
  )
  
subject: Change URL format to typical 'resource' model