649691d9cf9c4acdf002ae9958c6ecb39225cdc6
[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
5 urlpatterns = patterns('',
6     url(r'^$',
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"),
12 )