- 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
15 lines
327 B
Python
15 lines
327 B
Python
"""
|
|
Course Goals URLs
|
|
"""
|
|
from django.conf.urls import include, url
|
|
from rest_framework import routers
|
|
|
|
from .views import CourseGoalViewSet
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'course_goals', CourseGoalViewSet, base_name='course_goal')
|
|
|
|
urlpatterns = [
|
|
url(r'^v0/', include(router.urls, namespace='v0')),
|
|
]
|