courseware_views.financial_assistance_request, name='submit_financial_assistance_request') ] # Branch.io Text Me The App if settings.BRANCH_IO_KEY: urlpatterns += [ url(r'^text-me-the-app', student_views.text_me_the_app, name='text_me_the_app'), ] if settings.FEATURES.get('ENABLE_API_DOCS'): urlpatterns += [ url(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'), url(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), url(r'^api-docs/$', schema_view.with_ui('swagger', cache_timeout=0)), ] # edx-drf-extensions csrf app urlpatterns += [ url(r'', include('csrf.urls')), ] if 'openedx.testing.coverage_context_listener' in settings.INSTALLED_APPS: urlpatterns += [ url(r'coverage_context',
url( r'^financial-assistance/submit/$', courseware_views.financial_assistance_request, name='submit_financial_assistance_request' ) ] # Branch.io Text Me The App if settings.BRANCH_IO_KEY: urlpatterns += [ url(r'^text-me-the-app', student_views.text_me_the_app, name='text_me_the_app'), ] if settings.FEATURES.get('ENABLE_API_DOCS'): urlpatterns += [ url(r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=0), name='schema-json'), url(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), url(r'^api-docs/$', schema_view.with_ui('swagger', cache_timeout=0)), ] # edx-drf-extensions csrf app urlpatterns += [ url(r'', include('csrf.urls')), ] if 'openedx.testing.coverage_context_listener' in settings.INSTALLED_APPS: urlpatterns += [ url(r'coverage_context', include('openedx.testing.coverage_context_listener.urls')) ] urlpatterns.extend(plugin_urls.get_patterns(plugin_constants.ProjectType.LMS))
# UX reference templates urlpatterns.append(url(r'^template/(?P<template>.+)$', openedx.core.djangoapps.debug.views.show_reference_template, name='openedx.core.djangoapps.debug.views.show_reference_template')) # display error page templates, for testing purposes urlpatterns += [ url(r'^404$', handler404), url(r'^500$', handler500), ] # API docs. urlpatterns += [ url( r'^swagger(?P<format>\.json|\.yaml)$', schema_view.without_ui(cache_timeout=settings.OPENAPI_CACHE_TIMEOUT), name='schema-json', ), url( r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=settings.OPENAPI_CACHE_TIMEOUT), name='schema-swagger-ui', ), url(r'^api-docs/$', schema_view.with_ui('swagger', cache_timeout=settings.OPENAPI_CACHE_TIMEOUT)), ] if 'openedx.testing.coverage_context_listener' in settings.INSTALLED_APPS: urlpatterns += [ url(r'coverage_context', include('openedx.testing.coverage_context_listener.urls')) ] from openedx.core.djangoapps.plugins import constants as plugin_constants, plugin_urls