Skip to content

Code "reload" for development mode #2

@clemesha

Description

@clemesha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions