Mercurial > public > sg101
annotate user_photos/urls.py @ 1201:fe10aea76cbd tip
Add 2023 MP3 compilation links
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 24 Mar 2024 14:50:23 -0500 |
parents | 364f8ec48612 |
children |
rev | line source |
---|---|
bgneal@695 | 1 """URLs for the user_photos application.""" |
bgneal@1028 | 2 from django.conf.urls import url |
bgneal@696 | 3 |
bgneal@1028 | 4 import user_photos.views |
bgneal@696 | 5 |
bgneal@695 | 6 |
bgneal@1028 | 7 urlpatterns = [ |
bgneal@1028 | 8 url(r'^upload/$', user_photos.views.upload, name='user_photos-upload'), |
bgneal@722 | 9 url(r'^upload-ajax/$', |
bgneal@1028 | 10 user_photos.views.upload_ajax, |
bgneal@722 | 11 name='user_photos-upload_ajax'), |
bgneal@1096 | 12 url(r'^upload-ajax-v3/$', |
bgneal@1096 | 13 user_photos.views.upload_ajax_v3, |
bgneal@1096 | 14 name='user_photos-upload_ajax_v3'), |
bgneal@696 | 15 url(r'^photo/(?P<pk>\d+)/$', |
bgneal@1158 | 16 user_photos.views.PhotoView.as_view(), |
bgneal@704 | 17 name='user_photos-detail'), |
bgneal@704 | 18 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$', |
bgneal@1028 | 19 user_photos.views.GalleryView.as_view(), |
bgneal@704 | 20 name='user_photos-gallery'), |
bgneal@1028 | 21 url(r'^delete/$', user_photos.views.delete, name='user_photos-delete'), |
bgneal@971 | 22 url(r'^hotlink/$', |
bgneal@1028 | 23 user_photos.views.hotlink_image, |
bgneal@971 | 24 name='user_photos-hotlink'), |
bgneal@1028 | 25 ] |