Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # app/main.py
  2. # -*- coding: utf-8 -*-
  3. from flask import Flask
  4. import config
  5.  
  6. app = Flask(__name__)
  7.  
  8. app.config.from_object(config.object)
  9. app.logger.info("config.object = %s" % config.object)
  10.  
  11. from views import root
  12. app.register_blueprint(root.app)
  13.  
  14. if __name__ == '__main__':
  15. app.run(debug = app.config['DEBUG'])
Add Comment
Please, Sign In to add comment