issue for upgraded to Django 5.0.3

the issue message as below when I execute ‘python manage.py runserver’, Could you please advise how to fix this warnings message.

Python\Python3.11.3\Lib\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)
Watching for file changes with StatReloader

The most likely cause for this is that you’re executing a database operation in the ready() method in an AppConfig class in your apps.py file. See the docs and the warning box at Applications | Django documentation | Django.

If that’s not the case, then you need to check your entire code base to find any queries being used outside a function.