Don't run queries run in app.ready() - GeneCountType
Open
- Dominant language
- Python
- Stars
- 30
- Forks
- 3
- Avg merge
- 9h 28m
- Merged PRs (30d)
- 42
Description
You sometimes (because of cache, we only check once a day) get this message on startup:
```
$ python3 manage.py shell
/home/dlawrence/localwork/variantgrid/.venv/lib/python3.12/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)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.