from django.urls import path, re_path from . import views app_name = "locations" urlpatterns = [ re_path(r'data/(?P\d+)/$', views.data_json), path( r'', views.MapList.as_view(), name="maplist" ), ]