Files
edx-platform/lms/djangoapps/ccx/api/v0/urls.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

22 lines
489 B
Python

"""
CCX API v0 URLs.
"""
from django.conf import settings
from django.conf.urls import include, url
from lms.djangoapps.ccx.api.v0 import views
CCX_COURSE_ID_PATTERN = settings.COURSE_ID_PATTERN.replace('course_id', 'ccx_course_id')
CCX_URLS = ([
url(r'^$', views.CCXListView.as_view(), name='list'),
url(r'^{}/?$'.format(CCX_COURSE_ID_PATTERN), views.CCXDetailView.as_view(), name='detail'),
], 'ccx')
app_name = 'v0'
urlpatterns = [
url(r'^ccx/', include(CCX_URLS)),
]