oshipka/bootstrap/run.py

17 lines
378 B
Python
Raw Normal View History

2020-03-25 16:23:24 +01:00
from config import TEMPLATES_FOLDER, STATIC_FOLDER
2020-03-18 12:32:40 +01:00
from oshipka import init_db
2020-05-05 15:50:35 +02:00
from oshipka.persistance import populate_static
2020-03-18 12:32:40 +01:00
from populate import populate_db
from webapp.app import app
2020-03-23 14:59:11 +01:00
if init_db(app):
2020-05-05 15:50:35 +02:00
populate_static(app)
2020-03-23 14:59:11 +01:00
populate_db(app)
2020-03-18 12:32:40 +01:00
2020-03-23 14:59:11 +01:00
app.template_folder = TEMPLATES_FOLDER
2020-03-25 16:23:24 +01:00
app.static_folder = STATIC_FOLDER
2020-03-18 12:32:40 +01:00
2020-03-23 14:59:11 +01:00
if __name__ == "__main__":
2020-03-18 12:32:40 +01:00
app.run(debug=True)