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