Having all code reload on refresh is extremely useful for quicker development cycles. With a combination of a settings flag, like "DEBUG", plus using one or more on the below functions, we can achieve this.
Python has the "reload" built-in function.
For Twisted, there is "rebuild" here:
http://twistedmatrix.com/trac/browser/trunk/twisted/python/rebuild.py
There are some interesting ideas here:
http://code.google.com/p/evserver/source/browse/trunk/evserver/management/commands/runevserver.py
Which basically boil down to doing a kill of the process, then restart.
Having all code reload on refresh is extremely useful for quicker development cycles. With a combination of a settings flag, like "DEBUG", plus using one or more on the below functions, we can achieve this.
Python has the "reload" built-in function.
For Twisted, there is "rebuild" here:
http://twistedmatrix.com/trac/browser/trunk/twisted/python/rebuild.py
There are some interesting ideas here:
http://code.google.com/p/evserver/source/browse/trunk/evserver/management/commands/runevserver.py
Which basically boil down to doing a kill of the process, then restart.