annotate user_photos/urls.py @ 701:094492e66eb9

Implement rate limiting on user photo uploads.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Sep 2013 17:23:13 -0500
parents b2a8fde3173a
children 809d27b385f2
rev   line source
bgneal@695 1 """URLs for the user_photos application."""
bgneal@695 2 from django.conf.urls import patterns, url
bgneal@696 3 from django.views.generic import DetailView
bgneal@696 4
bgneal@696 5 from user_photos.models import Photo
bgneal@696 6
bgneal@695 7
bgneal@695 8 urlpatterns = patterns('user_photos.views',
bgneal@695 9 url(r'^upload/$', 'upload', name='user_photos-upload'),
bgneal@696 10 url(r'^photo/(?P<pk>\d+)/$',
bgneal@696 11 DetailView.as_view(model=Photo),
bgneal@696 12 name='user_photos-detail')
bgneal@695 13 )