app.py 558 B

12345678910111213141516171819202122
  1. """
  2. Flask Documentation: http://flask.pocoo.org/docs/
  3. Jinja2 Documentation: http://jinja.pocoo.org/2/documentation/
  4. Werkzeug Documentation: http://werkzeug.pocoo.org/documentation/
  5. """
  6. import os
  7. from flask import Flask
  8. app = Flask(__name__)
  9. app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY', 'this_should_be_configured')
  10. app.config['PORT'] = int(os.environ.get('PORT', 8000))
  11. app.config['DEBUG'] = bool(os.environ.get('DEBUG', False))
  12. # Configuration to put in file.
  13. app.config['DEBUG'] = True
  14. # End of configuration.
  15. config = app.config