bgneal@695: """URLs for the user_photos application.""" bgneal@1028: from django.conf.urls import url bgneal@696: bgneal@1028: import user_photos.views bgneal@696: bgneal@695: bgneal@1028: urlpatterns = [ bgneal@1028: url(r'^upload/$', user_photos.views.upload, name='user_photos-upload'), bgneal@722: url(r'^upload-ajax/$', bgneal@1028: user_photos.views.upload_ajax, bgneal@722: name='user_photos-upload_ajax'), bgneal@1096: url(r'^upload-ajax-v3/$', bgneal@1096: user_photos.views.upload_ajax_v3, bgneal@1096: name='user_photos-upload_ajax_v3'), bgneal@696: url(r'^photo/(?P\d+)/$', bgneal@1158: user_photos.views.PhotoView.as_view(), bgneal@704: name='user_photos-detail'), bgneal@704: url(r'^gallery/(?P[\w.@+-]{1,30})/$', bgneal@1028: user_photos.views.GalleryView.as_view(), bgneal@704: name='user_photos-gallery'), bgneal@1028: url(r'^delete/$', user_photos.views.delete, name='user_photos-delete'), bgneal@971: url(r'^hotlink/$', bgneal@1028: user_photos.views.hotlink_image, bgneal@971: name='user_photos-hotlink'), bgneal@1028: ]