2017-05-20 23:47:14 +00:00
|
|
|
from django.conf.urls import url
|
2017-11-18 16:54:44 +00:00
|
|
|
from django.urls import reverse_lazy
|
|
|
|
from django.views.generic import RedirectView
|
2017-05-20 23:47:14 +00:00
|
|
|
from djgeojson.views import GeoJSONLayerView
|
|
|
|
|
|
|
|
from .models import CaseStudy
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2017-11-18 16:54:44 +00:00
|
|
|
url(r'^$', RedirectView.as_view(url=reverse_lazy('map')), name='index'),
|
2017-10-08 20:21:51 +00:00
|
|
|
url(r'^data.geojson$', GeoJSONLayerView.as_view(model=CaseStudy, geometry_field='location'), name='data'),
|
|
|
|
url(r'^case-study/create/?$', views.Create.as_view(), name="create"),
|
|
|
|
url(r'^case-study/create/short/?$', views.ShortForm.as_view(), name='short-form'),
|
|
|
|
url(r'^case-study/create/long/?$', views.LongForm.as_view(), name='long-form'),
|
2017-10-09 23:58:36 +00:00
|
|
|
url(r'^case-study/create/success/?$', views.FormSuccess.as_view(), name='form-success'),
|
2017-11-18 16:54:44 +00:00
|
|
|
url(r'^case-study/(?P<slug>[-\w]+)/?$', views.CaseStudyDetail.as_view(), name='detail'),
|
|
|
|
url(r'^map/?$', views.Map.as_view(), name='map')
|
2017-05-20 23:47:14 +00:00
|
|
|
]
|