Answer the question
In order to leave comments, you need to log in
Why is time misbehaving in django?
Welcome all! Never faced such a problem before. Deployed a django project. But the time somehow began to behave inappropriately:
1) Time stuck (For example, posts were published with the same time)
2) Lagged behind
I tried to synchronize via ntp, everything seemed to work out somehow. Gunicorn restart. And lo and behold, everything works, but after a few hours, the same thing occurs.
I dug further and found that you can change USE_TZ = True to USE_TZ = False, and lo and behold, everything works.
But a pancake again the same trouble.
By the way, I have TIME_ZONE = 'Asia/Almaty'
All this is somehow strange. Maybe this system writes itself? Please help)))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question