/opt/netbox/venv/lib/python3.10/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app
initialization is discouraged. To fix this warning, avoid executing queries in AppConfig.ready() or when your app modules are
imported.
warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
AppConfig.ready() error