Mercurial > public > madeira
annotate mp3/urls.py @ 130:3062c547bb90
For Django 1.6: new test discovery plus reverse now does urlquote().
My base64 keys were padded with '=' and these got quoted when doing
a reverse to generate the URL. So changed the test to look for a
quoted version of the key. This will change the URLs sent to users, but
I believe it will all be taken care of by Django.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 24 Dec 2013 16:47:27 -0600 |
parents | e2868ad47a1e |
children | 312f198e8958 |
rev | line source |
---|---|
bgneal@48 | 1 """ |
bgneal@48 | 2 Urls for the mp3 application. |
bgneal@48 | 3 |
bgneal@48 | 4 """ |
bgneal@66 | 5 from django.conf.urls import patterns, 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@48 | 11 urlpatterns = patterns('', |
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@48 | 18 ) |