Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I googled and found a hint that I should set debug mode in Tornado so that it could reload files automatically on update. But I didn't find an exact string to insert. I tried different combinations similar to this application.settings = {"Debug": True} but it doesn't help.

share|improve this question
    
i think it should be {"debug":True} –  Jon Dinham Mar 2 '12 at 5:52

1 Answer 1

Here's a tweaked example from the tornado site:

if __name__ == "__main__":
    application = tornado.web.Application([
        (r"/", MainHandler) 
    ], debug=True)
    application.listen(8888)
    tornado.ioloop.IOLoop.instance().start()
share|improve this answer
1  
"debug=True" has to be outside of the list of handlers for it to work---like this: "...],debug=True)" –  Hemm Apr 17 '12 at 4:18
    
Good catch, I had written it without checking it. Updated my answer accordingly. –  Jonathan Haddad May 1 '12 at 20:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.