app.py 491 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Sun Jul 14 11:50:51 2019
  5. @author: dagarcos
  6. """
  7. import os
  8. from flask import Flask, flash, render_template, redirect, request, url_for
  9. from controllers.mainController import mainController
  10. app = Flask(__name__)
  11. app.secret_key = os.urandom(12)
  12. @app.route('/')
  13. def index():
  14. return redirect(url_for('mainController.main'))
  15. app.register_blueprint(mainController)
  16. if __name__ == '__main__':
  17. app.run(host='0.0.0.0', debug=True)