From 8691aa78e1d44d56aa34aa234517cd0adb4f39aa Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 1 Sep 2023 14:41:34 -0400 Subject: [PATCH] fix: Don't set default_app_config. From the warning: Django now detects this configuration automatically. You can remove default_app_config. This also removes two warnings from shell startup. --- openedx/core/djangoapps/programs/__init__.py | 2 -- openedx/core/djangoapps/schedules/__init__.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/openedx/core/djangoapps/programs/__init__.py b/openedx/core/djangoapps/programs/__init__.py index 8d12a150ee..8fc52e05f1 100644 --- a/openedx/core/djangoapps/programs/__init__.py +++ b/openedx/core/djangoapps/programs/__init__.py @@ -10,8 +10,6 @@ this package should be kept small, thin, and stateless. """ from edx_toggles.toggles import WaffleSwitch -default_app_config = 'openedx.core.djangoapps.programs.apps.ProgramsConfig' - PROGRAMS_WAFFLE_SWITCH_NAMESPACE = 'programs' # This is meant to be enabled until https://openedx.atlassian.net/browse/LEARNER-5573 needs to be resolved diff --git a/openedx/core/djangoapps/schedules/__init__.py b/openedx/core/djangoapps/schedules/__init__.py index 040a9e85ed..e69de29bb2 100644 --- a/openedx/core/djangoapps/schedules/__init__.py +++ b/openedx/core/djangoapps/schedules/__init__.py @@ -1,2 +0,0 @@ -# lint-amnesty, pylint: disable=missing-module-docstring -default_app_config = 'openedx.core.djangoapps.schedules.apps.SchedulesConfig'