oshipka/config.py

11 lines
253 B
Python
Raw Normal View History

2020-03-18 10:59:37 +01:00
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,
]