Chapter 4

This commit is contained in:
2023-06-03 16:59:29 +02:00
parent c640e3ca82
commit f9020e921f
16 changed files with 396 additions and 0 deletions

11
config.py Normal file
View File

@@ -0,0 +1,11 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY") or "you-will-never-guess"
SQLALCHEMY_DATABASE_URI = os.environ.get(
"DATABASE_URL"
) or "sqlite:///" + os.path.join(basedir, "app.db")
SQLALCHEMY_TRACK_MODIFICATIONS = False