from django.urls import path from djgeojson.views import GeoJSONLayerView from graphic.models import Address from . import views urlpatterns = [ path('', views.index, name='graphic-index'), path('address.geojson', GeoJSONLayerView.as_view(model=Address, properties=('name',)), name='address-geo') ]