old_contents: from django.conf.urls.defaults import *
  
  accounts = patterns('locksmith.hub.views',
      url(r'^register/$', 'register', name='api_registration'),
      url(r'^profile/$', 'profile', name='profile'),
      url(r'^confirmkey/(?P<key>[0-9a-f]{32})/$', 'confirm_registration',
          name='api_confirm'),
  )
  
  analytics = patterns('locksmith.hub.views',
      url(r'^report_calls/$', 'report_calls', name='report_calls'),
      url(r'^$', 'analytics_index', name='analytics_index'),
      url(r'^api/(?P<apiname>\w+)/$', 'api_analytics', name='api_analytics'),
      url(r'^api/(?P<apiname>\w+)/(?P<year>20[01]\d)/$', 'api_analytics', name='api_analytics_year'),
      url(r'^api/(?P<apiname>\w+)/(?P<year>20[01]\d)/(?P<month>[01]?\d)/$', 'api_analytics', name='api_analytics_month'),
      url(r'^key/$', 'key_list', name='key_list'),
      url(r'^key/(?P<key>\w+)/$', 'key_analytics', name='key_analytics'),
  )
  
  urlpatterns = patterns('locksmith.hub.views',
      url(r'^accounts/', include(accounts)),
      url(r'^analytics/', include(analytics)),
  )
  
new_contents: from django.conf.urls.defaults import *
  
  accounts = patterns('locksmith.hub.views',
      url(r'^register/$', 'register', name='api_registration'),
      url(r'^profile/$', 'profile', name='profile'),
      url(r'^confirmkey/(?P<key>[0-9a-f]{32})/$', 'confirm_registration',
          name='api_confirm'),
  )
  
  analytics = patterns('locksmith.hub.views',
      url(r'^report_calls/$', 'report_calls', name='report_calls'),
      url(r'^$', 'analytics_index', name='analytics_index'),
      url(r'^api/(?P<apiname>[-\w]+)/$', 'api_analytics', name='api_analytics'),
      url(r'^api/(?P<apiname>[-\w]+)/(?P<year>20[01]\d)/$', 'api_analytics', name='api_analytics_year'),
      url(r'^api/(?P<apiname>[-\w]+)/(?P<year>20[01]\d)/(?P<month>[01]?\d)/$', 'api_analytics', name='api_analytics_month'),
      url(r'^key/$', 'key_list', name='key_list'),
      url(r'^key/(?P<key>\w+)/$', 'key_analytics', name='key_analytics'),
  )
  
  urlpatterns = patterns('locksmith.hub.views',
      url(r'^accounts/', include(accounts)),
      url(r'^analytics/', include(analytics)),
  )
  
subject: allow dashes in apinames