diff --git a/build/apps.py b/build/apps.py index 313bdd6..09523c2 100644 --- a/build/apps.py +++ b/build/apps.py @@ -19,5 +19,7 @@ class ReleaseConfig(AppConfig): name = "build" def ready(self): + from .conf import settings # noqa + # Implicitly connect a signal handlers decorated with @receiver. from . import signals # noqa diff --git a/hotfix/apps.py b/hotfix/apps.py index b458af9..c7268b3 100644 --- a/hotfix/apps.py +++ b/hotfix/apps.py @@ -17,3 +17,6 @@ from django.apps import AppConfig class HotfixConfig(AppConfig): name = "hotfix" + + def ready(self): + from .conf import settings # noqa diff --git a/panel/apps.py b/panel/apps.py index 4901ee4..6440f7e 100644 --- a/panel/apps.py +++ b/panel/apps.py @@ -17,3 +17,6 @@ from django.apps import AppConfig class PanelConfig(AppConfig): name = "panel" + + def ready(self): + from .conf import settings # noqa diff --git a/panel/models.py b/panel/models.py deleted file mode 100644 index 16e0ddb..0000000 --- a/panel/models.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (C) 2020 The Sipwise Team - http://sipwise.com -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the Free -# Software Foundation, either version 3 of the License, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -# more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# This is needed due to: -# -# AppConf classes depend on being imported during startup of the Django -# process. Even though there are multiple modules loaded automatically, only -# the models modules (usually the models.py file of your app) are guaranteed -# to be loaded at startup. Therefore it’s recommended to put your AppConf -# subclass(es) there, too. -# -# https://django-appconf.readthedocs.io/en/latest/ -from .conf import settings # noqa diff --git a/release_changed/apps.py b/release_changed/apps.py index 3c14be3..c7c522b 100644 --- a/release_changed/apps.py +++ b/release_changed/apps.py @@ -17,3 +17,6 @@ from django.apps import AppConfig class ReleaseChangedConfig(AppConfig): name = "release_changed" + + def ready(self): + from .conf import settings # noqa diff --git a/release_dashboard/apps.py b/release_dashboard/apps.py index 647d575..619b57d 100644 --- a/release_dashboard/apps.py +++ b/release_dashboard/apps.py @@ -17,3 +17,6 @@ from django.apps import AppConfig class ReleaseDashboardConfig(AppConfig): name = "release_dashboard" + + def ready(self): + from .conf import settings # noqa