disable cybernaut form
[edumed.git] / catalogue / urls.py
index 3b40c3a..f2a8b08 100755 (executable)
@@ -1,13 +1,13 @@
-from django.conf.urls import patterns, include, url
-from django.views.generic import DetailView, ListView
-from .models import Section, Lesson
-from .views import SectionView
+# -*- coding: utf-8 -*-
+from django.conf.urls import patterns, url
+from .views import LessonListView, LessonView
 
 
-urlpatterns = patterns('',
+urlpatterns = patterns(
+    '',
     url(r'^$',
     url(r'^$',
-        SectionView.as_view(),
+        LessonListView.as_view(),
         name="catalogue_lessons"),
     url(r'^(?P<slug>[^/]+)/$',
         name="catalogue_lessons"),
     url(r'^(?P<slug>[^/]+)/$',
-        DetailView.as_view(model=Lesson),
+        LessonView.as_view(),
         name="catalogue_lesson"),
 )
         name="catalogue_lesson"),
 )