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

14 lines
268 B
Python

from config import TEMPLATES_FOLDER
from oshipka import init_db
from populate import populate_db
from webapp.app import app
if __name__ == "__main__":
if init_db(app):
populate_db(app)
app.template_folder = TEMPLATES_FOLDER
app.run(debug=True)