-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Environment
| Item | Version |
|---|---|
| NetBox version | e.g. 4.5.4 |
| Plugin version | e.g. 2.0.2 |
netbox_custom_objects version |
e.g. 0.4.6 |
| Python version | e.g. 3.13.5 |
Steps to reproduce
Executing manage.py migrate / collectstatic
Expected behaviour
No warning
Actual behaviour
What actually happened.
/opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.CustomObjectTypeField'> before branching support is initialized.
warnings.warn(f"Routing database query for {model} before branching support is initialized.")
/opt/netbox/venv/lib/python3.13/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)
/opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models.ContentType'> before branching support is initialized.
warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Disabling plugin remove the warning
Mar 11 10:43:58 snipe-it gunicorn[30791]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30791]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30791]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30791]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30791]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30791]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30791]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30791]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30791]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models>
Mar 11 10:43:58 snipe-it gunicorn[30791]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30792]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30792]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30792]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30792]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30792]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30792]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30792]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30792]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30792]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models>
Mar 11 10:43:58 snipe-it gunicorn[30792]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30794]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30794]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30794]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30794]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30795]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30795]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30795]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30795]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30794]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30794]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30793]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30793]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30794]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30794]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30793]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30793]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:58 snipe-it gunicorn[30794]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models>
Mar 11 10:43:58 snipe-it gunicorn[30794]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30795]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:58 snipe-it gunicorn[30795]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:58 snipe-it gunicorn[30795]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:58 snipe-it gunicorn[30795]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:59 snipe-it gunicorn[30795]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models>
Mar 11 10:43:59 snipe-it gunicorn[30795]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:59 snipe-it gunicorn[30793]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'netbox_custom_objects.models.Custo>
Mar 11 10:43:59 snipe-it gunicorn[30793]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")
Mar 11 10:43:59 snipe-it gunicorn[30793]: /opt/netbox/venv/lib/python3.13/site-packages/django/db/backends/utils.py:98: RuntimeWarning: Accessing the database during app initialization is discouraged. To>
Mar 11 10:43:59 snipe-it gunicorn[30793]: warnings.warn(self.APPS_NOT_READY_WARNING_MSG, category=RuntimeWarning)
Mar 11 10:43:59 snipe-it gunicorn[30793]: /opt/netbox/venv/lib/python3.13/site-packages/netbox_branching/database.py:27: UserWarning: Routing database query for <class 'django.contrib.contenttypes.models>
Mar 11 10:43:59 snipe-it gunicorn[30793]: warnings.warn(f"Routing database query for {model} before branching support is initialized.")