annotate user_photos/urls.py @ 703:d7a0aaabc06c

Display thumbnail in user_photos admin.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Sep 2013 18:43:10 -0500
parents b2a8fde3173a
children 809d27b385f2
rev   line source
bgneal@695 1 """URLs for the user_photos application."""
bgneal@695 2 from django.conf.urls import patterns, url
bgneal@696 3 from django.views.generic import DetailView
bgneal@696 4
bgneal@696 5 from user_photos.models import Photo
bgneal@696 6
bgneal@695 7
bgneal@695 8 urlpatterns = patterns('user_photos.views',
bgneal@695 9 url(r'^upload/$', 'upload', name='user_photos-upload'),
bgneal@696 10 url(r'^photo/(?P<pk>\d+)/$',
bgneal@696 11 DetailView.as_view(model=Photo),
bgneal@696 12 name='user_photos-detail')
bgneal@695 13 )