Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 860 Bytes
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('',
url(r'^$', 'dashboard.views.index'),
url(r'^map/$', 'dashboard.views.map'),
url(r'^street/$', 'dashboard.views.street_list'),
url(r'^street/(?P<street_id>\d+)/$',
'dashboard.views.street_view'),
url(r'^street/(?P<street_id>\d+).json',
'dashboard.views.street_view_json'),
url(r'^neighborhood/$',
'dashboard.views.neighborhood_list'),
url(r'^neighborhood/(?P<neighborhood_id>\d+)/$',
'dashboard.views.neighborhood_detail'),
url(r'^neighborhood/(?P<neighborhood_id>\d+).json$',
'dashboard.views.neighborhood_detail_json'),
url(r'^search/$',
'dashboard.views.street_search'),
# API Calls
url(r'^api/home/(?P<geography>\d+).json$',
'dashboard.views.index', {'is_json': True}),
)
Something went wrong with that request. Please try again.