1👍
✅
You can use inotify – it enables monitoring filesystem events, such as file modification. There are also python bindings: pyinotify
There are many tutorials there, my suggestion is that you implement a wrapper that starts twisted monitors you source path. When a file modification occurs you restart twisted.
1👍
I use my own Pyquitter, which polls the source files for every module that the process has imported. Check out the ‘Sample use’ in the README, which covers how to use it with Twisted.
- [Answered ]-Updating related/nested resource (user/userprofile) – Seeing a duplicate key error on PATCH
- [Answered ]-Django userena mugshot widget in a form
- [Answered ]-How to get django to authenticate during unit testing
Source:stackexchange.com