old_contents: from django.conf.urls import patterns, url
  from django.contrib import admin
  from django.conf import settings
  from name import views
  
  
  admin.autodiscover()
  
  urlpatterns = patterns(
      '',
      url(r'stats/$', 'name.views.stats', name='name_stats'),
      url(r'label/(?P<name_value>.*)$', 'name.views.label', name='name_label'),
      url(r'feed/$', views.AtomSiteNewsFeed(), name='name_feed'),
      url(r'label/(?P<name_value>.*)$', 'name.views.label', name='name_label'),
      url(r'map/$', 'name.views.map', name='name_map'),
      url(r'map.json/$', 'name.views.map_json', name='name_map_json'),
      url(r'^$', 'name.views.landing', name='name_landing'),
      url(r'export/$', 'name.views.export', name='name_export'),
      url(r'search/$', views.SearchView.as_view(), name='name_search'),
      url(r'search.json$', 'name.views.get_names', name="name_names"),
      url(r'about/$', 'name.views.about', name='name_about'),
      url(r'(?P<name_id>.*).json$', 'name.views.name_json', name='name_json'),
      url(r'opensearch.xml$', 'name.views.opensearch', name='name_opensearch'),
      url(
          r'(?P<name_id>.*).mads.xml$',
          'name.views.mads_serialize',
          name='name_mads_serialize'
      ),
      url(
          r'(?P<name_id>[^/]+)/',
          'name.views.entry_detail',
          name='name_entry_detail'
      ),
  )
  
  if settings.DEBUG:
  
      # static files (images, css, javascript, etc.)
      urlpatterns += patterns(
          '',
          (r'^media/(?P<path>.*)$', 'django.views.static.serve', {
              'document_root': settings.MEDIA_ROOT}))
  
new_contents: from django.conf.urls import patterns, url
  from django.contrib import admin
  from django.conf import settings
  from name import views
  
  
  admin.autodiscover()
  
  urlpatterns = patterns(
      '',
      url(r'stats.json/$', 'name.views.stats_json', name='name_stats_json'),
      url(r'stats/$', 'name.views.stats', name='name_stats'),
      url(r'label/(?P<name_value>.*)$', 'name.views.label', name='name_label'),
      url(r'feed/$', views.AtomSiteNewsFeed(), name='name_feed'),
      url(r'label/(?P<name_value>.*)$', 'name.views.label', name='name_label'),
      url(r'map/$', 'name.views.map', name='name_map'),
      url(r'map.json/$', 'name.views.map_json', name='name_map_json'),
      url(r'^$', 'name.views.landing', name='name_landing'),
      url(r'export/$', 'name.views.export', name='name_export'),
      url(r'search/$', views.SearchView.as_view(), name='name_search'),
      url(r'search.json$', 'name.views.get_names', name="name_names"),
      url(r'about/$', 'name.views.about', name='name_about'),
      url(r'(?P<name_id>.*).json$', 'name.views.name_json', name='name_json'),
      url(r'opensearch.xml$', 'name.views.opensearch', name='name_opensearch'),
      url(
          r'(?P<name_id>.*).mads.xml$',
          'name.views.mads_serialize',
          name='name_mads_serialize'
      ),
      url(
          r'(?P<name_id>[^/]+)/',
          'name.views.entry_detail',
          name='name_entry_detail'
      ),
  )
  
  if settings.DEBUG:
  
      # static files (images, css, javascript, etc.)
      urlpatterns += patterns(
          '',
          (r'^media/(?P<path>.*)$', 'django.views.static.serve', {
              'document_root': settings.MEDIA_ROOT}))
  
subject: Add url for the stats_json view.