ojuso-map/apps/map/urls.py

13 lines
317 B
Python
Raw Normal View History

from django.conf.urls import url
from djgeojson.views import GeoJSONLayerView
from .models import CaseStudy
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
2017-05-22 23:12:04 +00:00
url(r'^data.geojson$',
GeoJSONLayerView.as_view(model=CaseStudy, geometry_field='location'),
name='data')
]