view user_photos/urls.py @ 697:67f8d49a9377

Cleaned up the code a bit. Separated the S3 stuff out into its own class. This class maybe should be in core. Still want to do some kind of context manager around the temporary file we are creating to ensure it gets deleted.
author Brian Neal <bgneal@gmail.com>
date Sun, 08 Sep 2013 21:02:58 -0500
parents b2a8fde3173a
children 809d27b385f2
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


urlpatterns = patterns('user_photos.views',
    url(r'^upload/$', 'upload', name='user_photos-upload'),
    url(r'^photo/(?P<pk>\d+)/$',
        DetailView.as_view(model=Photo),
        name='user_photos-detail')
)