from django.conf.urls import url from . import views urlpatterns = [ url(r'data/(?P\d+)/$', views.data_json), url(r'^$', views.map_list), ]