[Answered ]-Can twistd do an automatic server reset the same way as django?

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.

Leave a comment