oshipka/bootstrap/config.py
Daniel Tsvetkov c3be6dd7ef bootstrap
2020-03-18 12:32:40 +01:00

11 lines
317 B
Python

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)
TEMPLATES_FOLDER = os.path.join(basepath, "webapp", "templates")
MAKEDIRS = [
DATA_DIR,
]