On the production server (nginx + gunicorn), after changes in the files, sometimes the changes are displayed, sometimes they are not displayed. After restarting the server, everything works correctly.
I thought it might be related to caches and tried different options (disabling caches, cleaning caches, etc.), but the problem remained.
Also tried deleting the __pycache__
folders in different project directories, but that didn't help either