Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # app/main.py
- # -*- coding: utf-8 -*-
- from flask import Flask
- import config
- app = Flask(__name__)
- app.config.from_object(config.object)
- app.logger.info("config.object = %s" % config.object)
- from views import root
- app.register_blueprint(root.app)
- if __name__ == '__main__':
- app.run(debug = app.config['DEBUG'])
Add Comment
Please, Sign In to add comment