from django.conf.urls.defaults import * from djangofr.documentation.models import Documentation urlpatterns = patterns('django.views.generic.list_detail', (r'^(?P[-\w]+)/$', 'object_detail', dict( queryset = Documentation.objects.all(), template_object_name = 'documentation', slug_field='slug', ) ), (r'^$', 'object_list', dict( queryset = Documentation.objects.order_by('order'), template_object_name = 'documentation', allow_empty=True, ), ) )