view user_photos/urls.py @ 1082:644743600197

Forgot to commit countdown templates.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Apr 2016 12:35:11 -0500
parents 5ba2508939f7
children d9cd3180c12c
line wrap: on
line source
"""URLs for the user_photos application."""
from django.conf.urls import url
from django.views.generic import DetailView

from user_photos.models import Photo
import user_photos.views


urlpatterns = [
    url(r'^upload/$', user_photos.views.upload, name='user_photos-upload'),
    url(r'^upload-ajax/$',
        user_photos.views.upload_ajax,
        name='user_photos-upload_ajax'),
    url(r'^photo/(?P<pk>\d+)/$',
        DetailView.as_view(model=Photo),
        name='user_photos-detail'),
    url(r'^gallery/(?P<username>[\w.@+-]{1,30})/$',
        user_photos.views.GalleryView.as_view(),
        name='user_photos-gallery'),
    url(r'^delete/$', user_photos.views.delete, name='user_photos-delete'),
    url(r'^hotlink/$',
        user_photos.views.hotlink_image,
        name='user_photos-hotlink'),
]