11 lines
317 B
Python
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,
|
|
] |