[wingide-users] auto restart for django

Wing IDE Support support at wingware.com
Thu Jan 24 11:24:42 EST 2013

On 1/24/13 10:06 AM, Chris Curvey wrote:
> +1 on that.  I just wrap it up in a try/except block so I don't have to
> worry about it in production.  I think I have gone so far as to put the
> import in settings.py
> try:
>   import wingdbstub
> except ImportError:
>   pass
> Another alternative is to actually have the wingdbstub.py file in
> production, but set the kWingDebugDisabled = 1 so that debugging is
> ignored.  I've found that having this infrastructure around in
> production can be really helpful when I have an urgent problem in
> production that I can't duplicate on my machine.

Please keep in mind that we don't recommend use of the debugger in
production environment because the debugger has access to everything in
the process.  If you decide to do otherwise, at least restrict access to
the ports the debugger listens on via a firewall or some other means.



More information about the wingide-users mailing list