Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve RuntimeWarning by Refactoring Database Access #68

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

Kani999
Copy link
Owner

@Kani999 Kani999 commented Jul 26, 2024

  • Getting rid of and AppConfig.ready() error
/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)

@Kani999 Kani999 linked an issue Jul 26, 2024 that may be closed by this pull request
@Kani999 Kani999 force-pushed the 67-apps_not_ready_warning_msg branch from a36299c to b18f98c Compare July 26, 2024 10:19
@Kani999 Kani999 merged commit cb09efd into main Jul 29, 2024
@Kani999 Kani999 deleted the 67-apps_not_ready_warning_msg branch February 4, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

APPS_NOT_READY_WARNING_MSG
1 participant