Answer the question
In order to leave comments, you need to log in
Why does Django only display all posts after a restart?
Why does Django only display all posts after a restart?
In the admin panel, all data is visible (in the standard django's).
I don't use any caching in settings.
Postgre as a database.
Thank you.
Answer the question
In order to leave comments, you need to log in
Just as a guess, I will assume that you store the result of the query in a module-level variable or in a class variable, and subsequent queries simply use the already formed result, which, of course, is re-formed after a reload, and accordingly includes the new data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question