blob: 76192207704c9c41e8e369c582b0ee93ad488eaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from django.conf.urls import *
from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView
from photos.models import Photo
detail_dict = {
'queryset': Photo.objects.all(),
}
urlpatterns = patterns('',
(r'^(?P<object_id>\d+)/$', DetailView.as_view(model=Photo,template_name='details/photo.html')),
)
|