annotate user_photos/urls.py @ 696:b2a8fde3173a

Got the image resizing and uploading working. It needs a lot of work though. This commit is just to capture something that works.
author Brian Neal <bgneal@gmail.com>
date Sun, 08 Sep 2013 19:06:54 -0500
parents 2d35e5f97a99
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 )