bgneal@44: """ bgneal@44: Urls for the gigs application. bgneal@44: bgneal@44: """ bgneal@66: from django.conf.urls import patterns, url bgneal@44: from django.views.generic import ListView bgneal@44: bgneal@44: from gigs.models import Gig bgneal@44: bgneal@44: bgneal@44: urlpatterns = patterns('', bgneal@44: url(r'^$', 'gigs.views.gigs', name='gigs-index'), bgneal@44: url(r'^flyers/$', bgneal@44: ListView.as_view( bgneal@44: queryset=Gig.objects.exclude(flyer__isnull=True).select_related('flyer'), bgneal@44: template_name='gigs/flyers.html', bgneal@111: paginate_by=10, bgneal@44: context_object_name='gig_list'), bgneal@44: name='gigs-flyers') bgneal@44: )