I have a config class that has the config for my Flask app. Most of the config options are picked up, but the
app = Flask(__name__)
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
secret_key = '122332'
RuntimeError: the session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.
Config keys are all uppercase, to distinguish between config and other attributes on whatever object is being scanned. The key
secret_key is lower case, so it's not picked up.
SECRET_KEY = 'stack overflow'