Mercurial > public > sg101
diff bandmap/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | 5103edd3acc4 |
children |
line wrap: on
line diff
--- a/bandmap/urls.py Mon Dec 14 20:42:20 2015 -0600 +++ b/bandmap/urls.py Tue Dec 15 21:01:07 2015 -0600 @@ -1,14 +1,16 @@ """urls for the bandmap application""" -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns('', +import bandmap.views + +urlpatterns = [ url(r'^$', - 'bandmap.views.map_view', + bandmap.views.map_view, name='bandmap-map'), url(r'^add/$', - 'bandmap.views.add_band', + bandmap.views.add_band, name='bandmap-add'), url(r'^query/$', - 'bandmap.views.query', + bandmap.views.query, name='bandmap-query'), -) +]