Mercurial > public > sg101
view user_photos/urls.py @ 702:1fd0f88480bc
Finalize user photos detail page. Disable upload button on form submit.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Sep 2013 18:31:39 -0500 |
parents | b2a8fde3173a |
children | 809d27b385f2 |
line wrap: on
line source
"""URLs for the user_photos application.""" from django.conf.urls import patterns, url from django.views.generic import DetailView from user_photos.models import Photo urlpatterns = patterns('user_photos.views', url(r'^upload/$', 'upload', name='user_photos-upload'), url(r'^photo/(?P<pk>\d+)/$', DetailView.as_view(model=Photo), name='user_photos-detail') )