annotate user_photos/urls.py @ 1096:d9cd3180c12c

More GCalendar V3 conversion in progress. Built a brand new post editor. It is hardcoded into GCalendar right now. We will make it more general in the future.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Jun 2016 21:16:09 -0500
parents 5ba2508939f7
children 364f8ec48612
rev   line source
bgneal@695 1 """URLs for the user_photos application."""
bgneal@1028 2 from django.conf.urls import url
bgneal@696 3 from django.views.generic import DetailView
bgneal@696 4
bgneal@696 5 from user_photos.models import Photo
bgneal@1028 6 import user_photos.views
bgneal@696 7
bgneal@695 8
bgneal@1028 9 urlpatterns = [
bgneal@1028 10 url(r'^upload/$', user_photos.views.upload, name='user_photos-upload'),
bgneal@722 11 url(r'^upload-ajax/$',
bgneal@1028 12 user_photos.views.upload_ajax,
bgneal@722 13 name='user_photos-upload_ajax'),
bgneal@1096 14 url(r'^upload-ajax-v3/$',
bgneal@1096 15 user_photos.views.upload_ajax_v3,
bgneal@1096 16 name='user_photos-upload_ajax_v3'),
bgneal@696 17 url(r'^photo/(?P<pk>\d+)/$',
bgneal@696 18 DetailView.as_view(model=Photo),
bgneal@704 19 name='user_photos-detail'),
bgneal@704 20 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$',
bgneal@1028 21 user_photos.views.GalleryView.as_view(),
bgneal@704 22 name='user_photos-gallery'),
bgneal@1028 23 url(r'^delete/$', user_photos.views.delete, name='user_photos-delete'),
bgneal@971 24 url(r'^hotlink/$',
bgneal@1028 25 user_photos.views.hotlink_image,
bgneal@971 26 name='user_photos-hotlink'),
bgneal@1028 27 ]