Mercurial > public > madeira
annotate mp3/urls.py @ 187:86786e05a189
Add Atomic Grog quote to home page.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 31 Jan 2016 15:36:05 -0600 |
parents | 312f198e8958 |
children |
rev | line source |
---|---|
bgneal@48 | 1 """ |
bgneal@48 | 2 Urls for the mp3 application. |
bgneal@48 | 3 |
bgneal@48 | 4 """ |
bgneal@180 | 5 from django.conf.urls import url |
bgneal@48 | 6 from django.views.generic import ListView |
bgneal@48 | 7 |
bgneal@48 | 8 from mp3.models import Collection |
bgneal@48 | 9 |
bgneal@48 | 10 |
bgneal@180 | 11 urlpatterns = [ |
bgneal@48 | 12 url(r'^$', |
bgneal@48 | 13 ListView.as_view( |
bgneal@48 | 14 model=Collection, |
bgneal@48 | 15 paginate_by=10, |
bgneal@48 | 16 context_object_name='collection_list'), |
bgneal@48 | 17 name='mp3-index'), |
bgneal@180 | 18 ] |