fix: default value for the conf secret key value

This commit is contained in:
2024-10-26 21:59:49 -03:00
parent 82f3477d1d
commit 3124faddbb

View File

@@ -4,7 +4,7 @@ basedir = os.path.abspath(os.path.dirname(__file__))
class Config: class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') SECRET_KEY = os.environ.get('SECRET_KEY') or "thesecretkey"
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')\ SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')\
or 'sqlite:///' + os.path.join(basedir, 'instance\\adogapet.db') or 'sqlite:///' + os.path.join(basedir, 'instance\\adogapet.db')
SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_TRACK_MODIFICATIONS = False