Add base template and unuasble style

This commit is contained in:
Michał Gdula 2023-05-05 02:11:10 +03:00
parent 8bf194f936
commit 0af071992b
10 changed files with 94 additions and 53 deletions

View file

@ -0,0 +1,17 @@
import os
from flask import Flask
from extensions import db, migrate, cache
from config import MIGRATION_DIR, INSTANCE_DIR
from views import blueprint
app = Flask(__name__, instance_path=INSTANCE_DIR)
app.config.from_pyfile('config.py')
db.init_app(app)
migrate.init_app(app, db, directory=MIGRATION_DIR)
cache.init_app(app)
with app.app_context():
db.create_all()
app.register_blueprint(blueprint)