comparison band/urls.py @ 180:312f198e8958

Changes for Django 1.8.
author Brian Neal <bgneal@gmail.com>
date Sun, 13 Dec 2015 21:04:43 -0600
parents 846cda22d77c
children
comparison
equal deleted inserted replaced
179:574cdd0241af 180:312f198e8958
1 """ 1 """
2 Urls for the band application. 2 Urls for the band application.
3 3
4 """ 4 """
5 from django.conf.urls import patterns, url 5 from django.conf.urls import url
6 6
7 urlpatterns = patterns('band.views', 7 import band.views
8 url(r'^bio/$', 'bio', name='band-bio'), 8
9 url(r'^buy/$', 'buy', name='band-buy'), 9
10 url(r'^contact/$', 'contact', name='band-contact'), 10 urlpatterns = [
11 url(r'^photos/$', 'photos_index', name='band-photo_index'), 11 url(r'^bio/$', band.views.bio, name='band-bio'),
12 url(r'^photos/(\d+)/$', 'photo_detail', name='band-photo_detail'), 12 url(r'^buy/$', band.views.buy, name='band-buy'),
13 ) 13 url(r'^contact/$', band.views.contact, name='band-contact'),
14 url(r'^photos/$', band.views.photos_index, name='band-photo_index'),
15 url(r'^photos/(\d+)/$', band.views.photo_detail, name='band-photo_detail'),
16 ]