Mercurial > public > madeira
diff gigs/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 | 23efa49f5e29 |
children |
line wrap: on
line diff
--- a/gigs/urls.py Tue Oct 20 20:38:34 2015 -0500 +++ b/gigs/urls.py Sun Dec 13 21:04:43 2015 -0600 @@ -2,14 +2,15 @@ Urls for the gigs application. """ -from django.conf.urls import patterns, url +from django.conf.urls import url from django.views.generic import ListView from gigs.models import Gig +import gigs.views -urlpatterns = patterns('', - url(r'^$', 'gigs.views.gigs', name='gigs-index'), +urlpatterns = [ + url(r'^$', gigs.views.gigs, name='gigs-index'), url(r'^flyers/$', ListView.as_view( queryset=Gig.objects.exclude(flyer__isnull=True).select_related('flyer'), @@ -17,4 +18,4 @@ paginate_by=10, context_object_name='gig_list'), name='gigs-flyers') -) +]