comparison 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
comparison
equal deleted inserted replaced
1027:cd4db27c90e3 1028:5ba2508939f7
1 """urls for the bandmap application""" 1 """urls for the bandmap application"""
2 from django.conf.urls import patterns, url 2 from django.conf.urls import url
3 3
4 urlpatterns = patterns('', 4 import bandmap.views
5
6 urlpatterns = [
5 url(r'^$', 7 url(r'^$',
6 'bandmap.views.map_view', 8 bandmap.views.map_view,
7 name='bandmap-map'), 9 name='bandmap-map'),
8 url(r'^add/$', 10 url(r'^add/$',
9 'bandmap.views.add_band', 11 bandmap.views.add_band,
10 name='bandmap-add'), 12 name='bandmap-add'),
11 url(r'^query/$', 13 url(r'^query/$',
12 'bandmap.views.query', 14 bandmap.views.query,
13 name='bandmap-query'), 15 name='bandmap-query'),
14 ) 16 ]