Working Example

This commit is contained in:
Rich
2021-07-03 19:40:40 +01:00
parent d50fbde5de
commit c357c654a6
16 changed files with 416 additions and 23 deletions

9
config.py Normal file
View File

@@ -0,0 +1,9 @@
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY") or "dfsads1!FASASF231(*&FADSs"
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL") or "sqlite:///" + os.path.join(basedir, "app.db")
SQLALCHEMY_TRACK_MODIFICATIONS = False