from karmaworld.apps.notes.views import RawNoteDetailView
from karmaworld.apps.moderation import moderator
from karmaworld.apps.document_upload.views import save_fp_upload
+ from karmaworld.apps.quizzes.views import QuizView, KeywordEditView, quiz_answer
from karmaworld.apps.users.views import ProfileView
+ from karmaworld.apps.users.views import ControlView
-# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
-
+from ajax_select import urls as ajax_select_urls
+# See: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf
admin.autodiscover()
# reused named regex capture groups
# b: school/course/id/slug
# c: s../c../slug
# note file as id, for notes without titles yet
- url(r'^(?P<school_slug>[^/]+)/(?P<course_slug>[^/]+)/(?P<pk>[\d^/]+)$', \
+ url(r'^note/(?P<school_slug>[^/]+)/(?P<course_slug>[^/]+)/(?P<pk>[\d^/]+)$', \
NoteView.as_view(), name='note_detail_pk'),
# note file by note.slug
- url(r'^' + SLUG.format('school_') + '/' + SLUG.format('course_') +'/'+ SLUG.format('') +'$',
+ url(r'^note/' + SLUG.format('school_') + '/' + SLUG.format('course_') +'/'+ SLUG.format('') +'$',
NoteView.as_view(), name='note_detail'),
- #url(r'^(?P<school_slug>[^/]+)/(?P<course_slug>[^/]+)/(?P<slug>[^/]+)$', \
- # NoteView.as_view(), name='note_detail'),
+
+ # Quizzes
+ url(r'^quiz/(?P<pk>[\d]+)/$',
+ QuizView.as_view(), name='quiz'),
+ url(r'^keywords/' + SLUG.format('') + '/$',
+ KeywordEditView.as_view(), name='keyword_edit'),
- url(r'^$', CourseListView.as_view(model=Course), name='home'),
+ url(r'^$', CourseListView.as_view(), name='home'),
)