[Django]-Django, Nginx, FastCGI caching problem when I change code


If it’s not manage.py runserver we’re talking about, you have to reset your server to see code changes to reload python and your code into memory.

Only the django devlopment server can detect changes and re-boot for you.

If you are saying you have to reboot the machine to update code, then you should look at how to restart your fastcgi process.


As for the best way? I develop on my local machine so for me a deployment script would ensure I get the latest update from version control and a reboot. Otherwise I just type arestart (a one hand typable bash alias).

Leave a comment