annotate user_photos/urls.py @ 1071:5a6349fb72bd
Convert store page to V3 design.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sun, 10 Apr 2016 14:31:08 -0500 |
parents |
5ba2508939f7 |
children |
d9cd3180c12c |
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@696
|
14 url(r'^photo/(?P<pk>\d+)/$',
|
bgneal@696
|
15 DetailView.as_view(model=Photo),
|
bgneal@704
|
16 name='user_photos-detail'),
|
bgneal@704
|
17 url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$',
|
bgneal@1028
|
18 user_photos.views.GalleryView.as_view(),
|
bgneal@704
|
19 name='user_photos-gallery'),
|
bgneal@1028
|
20 url(r'^delete/$', user_photos.views.delete, name='user_photos-delete'),
|
bgneal@971
|
21 url(r'^hotlink/$',
|
bgneal@1028
|
22 user_photos.views.hotlink_image,
|
bgneal@971
|
23 name='user_photos-hotlink'),
|
bgneal@1028
|
24 ]
|