view user_photos/urls.py @ 707:e4450defae0c

Updated dev requirements.txt for new version of boto.
author Brian Neal <bgneal@gmail.com>
date Sun, 15 Sep 2013 16:23:22 -0500
parents 809d27b385f2
children 13a1713d05b5
line wrap: on
line source
"""URLs for the user_photos application."""
from django.conf.urls import patterns, url
from django.views.generic import DetailView

from user_photos.models import Photo
from user_photos.views import GalleryView


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