3b40c3a55db3205e4da20cd17e2a4a9a83e53eb4
[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 )