* refactor: split programs into separate file space This is in preparation to allow learner dashboard routes/files to live alongside. * feat: add new empty course listing view * docs: update README and split out programs Co-authored-by: nsprenkle <nsprenkle@2u.com>
24 lines
1.1 KiB
Python
24 lines
1.1 KiB
Python
"""Learner dashboard URL routing configuration"""
|
|
|
|
from django.urls import path, re_path
|
|
|
|
from lms.djangoapps.learner_dashboard import courses_views, programs, program_views
|
|
|
|
# Learner Dashboard Routing
|
|
urlpatterns = [
|
|
path('learner/', courses_views.course_listing, name='course_listing_view')
|
|
]
|
|
|
|
# Program Dashboard Routing
|
|
urlpatterns += [
|
|
path('programs/', program_views.program_listing, name='program_listing_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/$', program_views.program_details, name='program_details_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/discussion/$', program_views.ProgramDiscussionIframeView.as_view(),
|
|
name='program_discussion'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/live/$', program_views.ProgramLiveIframeView.as_view(),
|
|
name='program_live'),
|
|
path('programs_fragment/', programs.ProgramsFragmentView.as_view(), name='program_listing_fragment_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/details_fragment/$', programs.ProgramDetailsFragmentView.as_view(),
|
|
name='program_details_fragment_view'),
|
|
]
|