Mercurial > public > sg101
comparison user_photos/urls.py @ 971:4f265f61874b
Hotlink image form is functioning.
The user can now submit a URL via a form and the URL will be downloaded
and uploaded to a S3 bucket if it is an image.
Tests to follow.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 22 Sep 2015 20:23:50 -0500 |
parents | 71d17d267e27 |
children | 5ba2508939f7 |
comparison
equal
deleted
inserted
replaced
970:bd594bcba5eb | 971:4f265f61874b |
---|---|
16 name='user_photos-detail'), | 16 name='user_photos-detail'), |
17 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$', | 17 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$', |
18 GalleryView.as_view(), | 18 GalleryView.as_view(), |
19 name='user_photos-gallery'), | 19 name='user_photos-gallery'), |
20 url(r'^delete/$', 'user_photos.views.delete', name='user_photos-delete'), | 20 url(r'^delete/$', 'user_photos.views.delete', name='user_photos-delete'), |
21 url(r'^hotlink/$', | |
22 'user_photos.views.hotlink_image', | |
23 name='user_photos-hotlink'), | |
21 ) | 24 ) |