bgneal@695: """URLs for the user_photos application.""" bgneal@695: from django.conf.urls import patterns, url bgneal@696: from django.views.generic import DetailView bgneal@696: bgneal@696: from user_photos.models import Photo bgneal@696: bgneal@695: bgneal@695: urlpatterns = patterns('user_photos.views', bgneal@695: url(r'^upload/$', 'upload', name='user_photos-upload'), bgneal@696: url(r'^photo/(?P\d+)/$', bgneal@696: DetailView.as_view(model=Photo), bgneal@696: name='user_photos-detail') bgneal@695: )