1 # -*- coding: utf-8 -*-
2 from django.conf.urls.defaults import *
3 from catalogue import forms
4 from lessons import models
7 urlpatterns = patterns('',
8 url(r'^$', 'django.views.generic.list_detail.object_list', {
9 'queryset': models.Document.objects.all(),
10 'template_name': 'lessons/document_list.html',
12 'form': forms.SearchForm(),
14 }, name='lessons_document_list'),
16 url(r'^(?P<slug>[a-zA-Z0-9_-]+)/$', 'lessons.views.document_detail', name='lessons_document_detail'),