Mercurial > public > sg101
comparison user_photos/urls.py @ 696:b2a8fde3173a
Got the image resizing and uploading working. It needs a lot of work though.
This commit is just to capture something that works.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 08 Sep 2013 19:06:54 -0500 |
parents | 2d35e5f97a99 |
children | 809d27b385f2 |
comparison
equal
deleted
inserted
replaced
695:2d35e5f97a99 | 696:b2a8fde3173a |
---|---|
1 """URLs for the user_photos application.""" | 1 """URLs for the user_photos application.""" |
2 from django.conf.urls import patterns, url | 2 from django.conf.urls import patterns, url |
3 from django.views.generic import DetailView | |
4 | |
5 from user_photos.models import Photo | |
6 | |
3 | 7 |
4 urlpatterns = patterns('user_photos.views', | 8 urlpatterns = patterns('user_photos.views', |
5 url(r'^upload/$', 'upload', name='user_photos-upload'), | 9 url(r'^upload/$', 'upload', name='user_photos-upload'), |
10 url(r'^photo/(?P<pk>\d+)/$', | |
11 DetailView.as_view(model=Photo), | |
12 name='user_photos-detail') | |
6 ) | 13 ) |