import os basepath = os.path.dirname(os.path.realpath(__file__)) DATA_DIR = os.path.join(basepath, "data") DATABASE_FILE = os.path.join(DATA_DIR, "db.sqlite") SQLALCHEMY_DATABASE_URI = 'sqlite:///{}'.format(DATABASE_FILE) MAKEDIRS = [ DATA_DIR, ]