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