from todoapp import app if __name__ == '__main__': app.run(debug=True)
from todoapp import app, urls if __name__ == "__main__": app.debug = True app.run(host=app.config['HOST'], port=app.config['PORT'])
def run(no_debug): """ start server """ from todoapp import app app.run(debug=(not no_debug))
from todoapp import app app.run(debug=True)