config.py 395 B

1234567891011121314
  1. import flask
  2. import itsdangerous
  3. import playhouse.sqlite_ext
  4. import os
  5. db = playhouse.sqlite_ext.SqliteExtDatabase(None)
  6. serializer = itsdangerous.URLSafeTimedSerializer(os.getenv("SECRET_KEY", "TEMP_KEY"))
  7. app_path = os.environ["APP_PATH"].strip()
  8. app = flask.Flask(
  9. __name__,
  10. static_folder=os.path.join(os.getcwd(), 'static'),
  11. )
  12. app.secret_key = os.getenv("SECRET_KEY", "ARGLBARGL")