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.

10 lines
330 B

import os
from pathlib import Path
basedir = Path(__file__).parent.absolute()
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
f"sqlite:///{Path(basedir) / 'app.db'}"
SQLALCHEMY_TRACK_MODIFICATIONS = False