- Remove usage of django.urls.patterns - Change urls tuples to lists - Make all string view names callables - This is the second of several urls updates for LMS; a work in progress
14 lines
406 B
Python
14 lines
406 B
Python
"""
|
|
Course API URLs
|
|
"""
|
|
from django.conf import settings
|
|
from django.conf.urls import include, url
|
|
|
|
from .views import CourseDetailView, CourseListView
|
|
|
|
urlpatterns = [
|
|
url(r'^v1/courses/$', CourseListView.as_view(), name="course-list"),
|
|
url(r'^v1/courses/{}'.format(settings.COURSE_KEY_PATTERN), CourseDetailView.as_view(), name="course-detail"),
|
|
url(r'', include('course_api.blocks.urls'))
|
|
]
|