diff madeira/band/urls.py @ 56:4579bbb6e053

Cleaning up the band app's views.
author Brian Neal <bgneal@gmail.com>
date Sat, 07 Apr 2012 16:28:27 -0500
parents 0176eca97d1d
children 9b9daefba97a
line wrap: on
line diff
--- a/madeira/band/urls.py	Sat Apr 07 15:58:51 2012 -0500
+++ b/madeira/band/urls.py	Sat Apr 07 16:28:27 2012 -0500
@@ -1,9 +1,13 @@
+"""
+Urls for the band application.
+
+"""
 from django.conf.urls.defaults import patterns, url
 
 urlpatterns = patterns('band.views',
-   (r'^bio/$', 'bio'),
-   (r'^buy/$', 'buy'),
-   (r'^contact/$', 'contact'),
-   (r'^photos/$', 'photos_index'),
-   (r'^photos/(\d+)$', 'photo_detail'),
+   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'),
 )