1 from django.conf.urls import patterns, include, url
2 from django.views.generic import DetailView, ListView
3 from .models import Section, Lesson
5 urlpatterns = patterns('',
7 ListView.as_view(model=Section),
8 name="catalogue_lessons"),
9 url(r'^(?P<slug>[^/]+)/$',
10 DetailView.as_view(model=Lesson),
11 name="catalogue_lesson"),