Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d5977aa431
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.375 kB
from django.conf.urls.defaults import *
from .models import SimpleModel
urlpatterns = patterns('django.views.generic.list_detail',
url(r'^$', 'object_list', {
'queryset': SimpleModel.objects.all(),
}, name="simplemodel_list"),
(r'^(?P<slug>[\w-]+)/', 'object_detail', {
'queryset': SimpleModel.objects.all(),
}, name="simplemodel_detail")
)
Jump to Line
Something went wrong with that request. Please try again.