add lesson footer
[edumed.git] / catalogue / urls.py
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
5
6 urlpatterns = patterns('',
7     url(r'^$',
8         SectionView.as_view(),
9         name="catalogue_lessons"),
10     url(r'^(?P<slug>[^/]+)/$',
11         DetailView.as_view(model=Lesson),
12         name="catalogue_lesson"),
13 )