BOM-1117
Specifying a namespace in django.conf.urls.include() without providing an app_name is deprecated. Adding the app_name attribute in the included module.
This commit is contained in:
@@ -7,6 +7,9 @@ from django.conf.urls import include, url
|
||||
|
||||
from . import views
|
||||
|
||||
|
||||
app_name = 'openedx.core.djangoapps.content_libraries'
|
||||
|
||||
# These URLs are only used in Studio. The LMS already provides all the
|
||||
# API endpoints needed to serve XBlocks from content libraries using the
|
||||
# standard XBlock REST API (see openedx.core.django_apps.xblock.rest_api.urls)
|
||||
|
||||
@@ -9,6 +9,8 @@ from django.conf.urls import url
|
||||
from .helpers import is_comprehensive_theming_enabled
|
||||
from .views import ThemingAdministrationFragmentView
|
||||
|
||||
app_name = 'openedx.core.djangoapps.theming'
|
||||
|
||||
if is_comprehensive_theming_enabled():
|
||||
urlpatterns = [
|
||||
url(
|
||||
|
||||
@@ -9,6 +9,8 @@ from . import views
|
||||
# may act a bit differently in each (e.g. Studio stores user state ephemerally).
|
||||
# If necessary at some point in the future, these URLs could be duplicated into
|
||||
# urls_studio and urls_lms, and/or the views could be likewise duplicated.
|
||||
app_name = 'openedx.core.djangoapps.xblock.rest_api'
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^api/xblock/v2/', include([
|
||||
url(r'^xblocks/(?P<usage_key_str>[^/]+)/', include([
|
||||
|
||||
Reference in New Issue
Block a user