From: Charles Connell Date: Mon, 17 Mar 2014 16:55:15 +0000 (-0400) Subject: Merge branch 'master' into feature_course_add_with_dept X-Git-Tag: release-20150131~148 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9a2b50052ced7dc5c02bc9fd7a10da19b8846814;p=oweals%2Fkarmaworld.git Merge branch 'master' into feature_course_add_with_dept Conflicts: reqs/common.txt --- 9a2b50052ced7dc5c02bc9fd7a10da19b8846814 diff --cc karmaworld/urls.py index 4934731,00a83a2..895d9ec --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@@ -18,11 -19,13 +18,13 @@@ from karmaworld.apps.notes.views impor 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 @@@ -102,13 -112,17 +108,17 @@@ urlpatterns = patterns('' # b: school/course/id/slug # c: s../c../slug # note file as id, for notes without titles yet - url(r'^(?P[^/]+)/(?P[^/]+)/(?P[\d^/]+)$', \ + url(r'^note/(?P[^/]+)/(?P[^/]+)/(?P[\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[^/]+)/(?P[^/]+)/(?P[^/]+)$', \ - # NoteView.as_view(), name='note_detail'), + + # Quizzes + url(r'^quiz/(?P[\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'), ) diff --cc reqs/common.txt index b89f403,d246573..f6059ae --- a/reqs/common.txt +++ b/reqs/common.txt @@@ -22,6 -22,5 +22,8 @@@ django-allaut boto==2.6.0 django-storages==1.1.4 django-reversion +django-ajax-selects +git+https://github.com/btbonval/django-ajax-selects-cascade.git +psycopg2 + git+https://github.com/Soaa-/django-nested-inlines.git + pyth