annotate videos/urls.py @ 162:27b38cc65ca4
Set defaults for BooleanFields.
THis suppresses a warning in Django 1.7 since the default changed in Django
1.6.
author |
Brian Neal <bgneal@gmail.com> |
date |
Thu, 02 Apr 2015 19:03:46 -0500 |
parents |
e2868ad47a1e |
children |
312f198e8958 |
rev |
line source |
bgneal@50
|
1 """
|
bgneal@50
|
2 Urls for the videos application.
|
bgneal@50
|
3
|
bgneal@50
|
4 """
|
bgneal@66
|
5 from django.conf.urls import patterns, url
|
bgneal@50
|
6 from django.views.generic import DetailView, ListView
|
bgneal@50
|
7
|
bgneal@50
|
8 from videos.models import Collection
|
bgneal@50
|
9
|
bgneal@50
|
10
|
bgneal@50
|
11 urlpatterns = patterns('',
|
bgneal@50
|
12 url(r'^$',
|
bgneal@50
|
13 ListView.as_view(
|
bgneal@50
|
14 model=Collection,
|
bgneal@50
|
15 context_object_name='collection_list'),
|
bgneal@50
|
16 name='videos-index'),
|
bgneal@50
|
17 url(r'^(?P<pk>\d+)/$',
|
bgneal@50
|
18 DetailView.as_view(model=Collection, context_object_name='collection'),
|
bgneal@50
|
19 name='videos-item')
|
bgneal@50
|
20 )
|