Mercurial > public > madeira
diff 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 |
line wrap: on
line diff
--- a/band/urls.py Tue Oct 20 20:38:34 2015 -0500 +++ b/band/urls.py Sun Dec 13 21:04:43 2015 -0600 @@ -2,12 +2,15 @@ Urls for the band application. """ -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns('band.views', - url(r'^bio/$', 'bio', name='band-bio'), - url(r'^buy/$', 'buy', name='band-buy'), - url(r'^contact/$', 'contact', name='band-contact'), - url(r'^photos/$', 'photos_index', name='band-photo_index'), - url(r'^photos/(\d+)/$', 'photo_detail', name='band-photo_detail'), -) +import band.views + + +urlpatterns = [ + url(r'^bio/$', band.views.bio, name='band-bio'), + url(r'^buy/$', band.views.buy, name='band-buy'), + url(r'^contact/$', band.views.contact, name='band-contact'), + url(r'^photos/$', band.views.photos_index, name='band-photo_index'), + url(r'^photos/(\d+)/$', band.views.photo_detail, name='band-photo_detail'), +]