annotate user_photos/urls.py @ 1160:b84ce2d7e93d

New template for displaying django messages. New common template for rendering django messages in the new V3 Foundation style.
author Brian Neal <bgneal@gmail.com>
date Tue, 24 Jan 2017 19:22:29 -0600
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 ]