A simple flask app with web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
534 B

import os
class Config():
"""
The configuration class. Retrieves needed environment information.
Accessed via app.config or current_app.config
"""
BASEDIR = os.path.abspath(os.path.dirname(__file__))
ENVIRONMENT = os.environ.get("APP_ENVIRONMENT") or "DEV"
SECRET_KEY = os.environ.get("SECRET_KEY") or "you-will-never-guess"
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL") or "sqlite:///{}".format(
os.path.join(BASEDIR, "app.db")
)
SQLALCHEMY_TRACK_MODIFICATIONS = False