From 9979017b69798d5f89a791a3d4aaba50c12fca47 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Wed, 16 Aug 2023 16:20:54 +0500 Subject: [PATCH] fix: fix django4 deprecation warnings (#32975) --- common/djangoapps/course_modes/rest_api/urls.py | 2 +- common/djangoapps/entitlements/rest_api/urls.py | 2 +- common/djangoapps/entitlements/rest_api/v1/urls.py | 2 +- common/djangoapps/third_party_auth/__init__.py | 2 -- common/djangoapps/third_party_auth/urls.py | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/djangoapps/course_modes/rest_api/urls.py b/common/djangoapps/course_modes/rest_api/urls.py index ae31164e07..9c807b0c11 100644 --- a/common/djangoapps/course_modes/rest_api/urls.py +++ b/common/djangoapps/course_modes/rest_api/urls.py @@ -3,7 +3,7 @@ URL definitions for the course_modes API. """ -from django.conf.urls import include +from django.urls import include from django.urls import path app_name = 'common.djangoapps.course_modes.rest_api' diff --git a/common/djangoapps/entitlements/rest_api/urls.py b/common/djangoapps/entitlements/rest_api/urls.py index 8c3bfaee22..740bce95a7 100644 --- a/common/djangoapps/entitlements/rest_api/urls.py +++ b/common/djangoapps/entitlements/rest_api/urls.py @@ -2,7 +2,7 @@ URLs file for the Entitlements API. """ -from django.conf.urls import include +from django.urls import include from django.urls import path app_name = 'entitlements' diff --git a/common/djangoapps/entitlements/rest_api/v1/urls.py b/common/djangoapps/entitlements/rest_api/v1/urls.py index ae314660a8..e1d98a2485 100644 --- a/common/djangoapps/entitlements/rest_api/v1/urls.py +++ b/common/djangoapps/entitlements/rest_api/v1/urls.py @@ -2,7 +2,7 @@ URLs for the V1 of the Entitlements API. """ -from django.conf.urls import include +from django.urls import include from django.urls import path, re_path from rest_framework.routers import DefaultRouter diff --git a/common/djangoapps/third_party_auth/__init__.py b/common/djangoapps/third_party_auth/__init__.py index dcc2964a8f..027c4648c4 100644 --- a/common/djangoapps/third_party_auth/__init__.py +++ b/common/djangoapps/third_party_auth/__init__.py @@ -3,8 +3,6 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers -default_app_config = 'common.djangoapps.third_party_auth.apps.ThirdPartyAuthConfig' - def is_enabled(): """Check whether third party authentication has been enabled. """ diff --git a/common/djangoapps/third_party_auth/urls.py b/common/djangoapps/third_party_auth/urls.py index 6d600856f9..e0804596bf 100644 --- a/common/djangoapps/third_party_auth/urls.py +++ b/common/djangoapps/third_party_auth/urls.py @@ -1,6 +1,6 @@ """Url configuration for the auth module.""" -from django.conf.urls import include +from django.urls import include from django.urls import path, re_path from .views import (