Django Forum
RuntimeWarning: Accessing the database during app initialization is discouraged.
Using Django
Mystery Errors
Dannyblazer
June 27, 2025, 8:01pm
13
I found the query that was being executed outside a function or class during app initialization
show post in topic
Related topics
Topic
Replies
Views
Activity
issue for upgraded to Django 5.0.3
Mystery Errors
2
522
June 12, 2024
server doesn't work properly after upgrade Django 2.
Getting Started
2
1670
April 16, 2022
What is this warning for AppConfig.ready() about?
Using Django
5
4025
December 1, 2021
TypeError: fromisoformat: argument must be str
Using the ORM
9
30058
February 10, 2022
ProgrammingError while migrating Django DB to Postgre
Using Django
19
4960
August 12, 2020