Use new restful pattern instead

This commit is contained in:
Don Mitchell
2013-10-23 08:50:45 -04:00
parent 8bbaf0065b
commit f45abe3d9f
5 changed files with 46 additions and 52 deletions

View File

@@ -131,7 +131,6 @@ urlpatterns += patterns(
url(r'^logout$', 'student.views.logout_user', name='logout'),
url(r'^(?P<course_id>[^/]+)/orphan', 'contentstore.views.orphan', name='orphan')
)
# restful api
@@ -142,6 +141,7 @@ urlpatterns += patterns(
# (?ix) == ignore case and verbose (multiline regex)
url(r'(?ix)^course/{}$'.format(parsers.URL_RE_SOURCE), 'course_handler'),
url(r'(?ix)^checklists/{}(/)?(?P<checklist_index>\d+)?$'.format(parsers.URL_RE_SOURCE), 'checklists_handler'),
url(r'(?ix)^orphan/{}$'.format(parsers.URL_RE_SOURCE), 'orphan')
)
js_info_dict = {