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')
)
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')
)

Allow dots in package names.
Allow dots in package names.

Packages such as `backbone.wreqr` and `backbone.babysitter` where 404ing fixes #9