S
S
sandrain2014-03-07 20:34:01
Django
sandrain, 2014-03-07 20:34:01

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

1 answer(s)
S
stepank, 2014-03-07
@stepank

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 question

Ask a Question

731 491 924 answers to any question