[Twisted-Python] WSGI Question
ssteinerx at gmail.com
Wed Jan 20 11:04:26 EST 2010
On Jan 20, 2010, at 10:37 AM, Phil Christensen wrote:
> On Jan 20, 2010, at 9:58 AM, adamjamesdrew same wrote:
>> I deploy code. Then I modify the code on my file system. The code does not automatically change on the server. It does this on the django dev server. How can I make this happen?
> This is a Django-specific feature that doesn't exist in Twisted.
> It wouldn't be too hard to write, but it's the kind of feature that tends to be useful more to web developers than authors of other kinds of applications.
> As it is, automatic code reloading is tricky to achieve in Python, since reload(modulename) only reloads modulename in the current scope, and must be reloaded everywhere that module is used.
There is/was a Twisted ticket about this and a quick sketch of how it might be done for Twisted by using the Django module itself by one of the Twisted devs.
I gave it a brief shot, but couldn't get it working in the time I had to spend on it.
Sure would be handy, though...
More information about the Twisted-Python