old_contents: from django.conf.urls import patterns, include, url
  from api.views import PackagesListView, PackagesFindView, PackagesSearchView
  
  
  urlpatterns = patterns('',
      url(r'^packages/?$', PackagesListView.as_view(), name='list'),
      url(r'^packages/(?P<name>[-\w]+)/?$', PackagesFindView.as_view(), name='find'),
      url(r'^packages/search/(?P<name>[-\w]+)/?$', PackagesSearchView.as_view(), name='search')
  )
new_contents: from django.conf.urls import patterns, include, url
  from api.views import PackagesListView, PackagesFindView, PackagesSearchView
  
  
  urlpatterns = patterns('',
      url(r'^packages/?$', PackagesListView.as_view(), name='list'),
      url(r'^packages/(?P<name>[-\w]+)/?$', PackagesFindView.as_view(), name='find'),
      url(r'^packages/search/(?P<name>[-\w\.]+)/?$', PackagesSearchView.as_view(), name='search')
  )
  
subject: Allow dots in package names.