Reputation: 321
I have a VM in Oracle virtual box which has Fedora24. I have my python server running (Django). There is no web server like Apache.However, when I make changes to the code the files are getting saved, but the changes are not reflected on the server.
I have to do kill -15 processid of python OR Restart my VM many times to see the changes.
Any idea why this is happening? Have tried clearing the browser caches also.
Upvotes: 1
Views: 85
Reputation: 77912
You failed to provide enough context - like what exactly is "your python server", but anyway, you mention a browser cache so I assume it's a web server process. The point is: Python modules are imported only once per process, and once imported changes to the source files are totally irrelevant. So if you have a long running process, it is expected that you restart the process every time you deploy a new version of your modules.
Upvotes: 1