Mercurial > public > sg101
comparison user_photos/urls.py @ 722:71d17d267e27
Added an ajax form to upload photos & update post box w/image code.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 Sep 2013 17:00:49 -0500 |
parents | 13a1713d05b5 |
children | 4f265f61874b |
comparison
equal
deleted
inserted
replaced
721:378b55b81de3 | 722:71d17d267e27 |
---|---|
6 from user_photos.views import GalleryView | 6 from user_photos.views import GalleryView |
7 | 7 |
8 | 8 |
9 urlpatterns = patterns('', | 9 urlpatterns = patterns('', |
10 url(r'^upload/$', 'user_photos.views.upload', name='user_photos-upload'), | 10 url(r'^upload/$', 'user_photos.views.upload', name='user_photos-upload'), |
11 url(r'^upload-ajax/$', | |
12 'user_photos.views.upload_ajax', | |
13 name='user_photos-upload_ajax'), | |
11 url(r'^photo/(?P<pk>\d+)/$', | 14 url(r'^photo/(?P<pk>\d+)/$', |
12 DetailView.as_view(model=Photo), | 15 DetailView.as_view(model=Photo), |
13 name='user_photos-detail'), | 16 name='user_photos-detail'), |
14 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$', | 17 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$', |
15 GalleryView.as_view(), | 18 GalleryView.as_view(), |