mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-27 21:33:11 +00:00
Yeet useless tables
Yeet useless data paths in dockerfile Add order into templates file
This commit is contained in:
parent
b19dedc568
commit
300c80fcd5
17 changed files with 86 additions and 106 deletions
|
@ -4,17 +4,16 @@ from flask import Flask, render_template, abort
|
|||
from flask_assets import Bundle
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
from .config import MIGRATION_DIR, INSTANCE_DIR
|
||||
from .extensions import db, migrate, cache, assets, login_manager
|
||||
from .models import Users
|
||||
from . import views, auth, api, filters
|
||||
|
||||
|
||||
app = Flask(__name__, instance_path=INSTANCE_DIR)
|
||||
app = Flask(__name__)
|
||||
app.config.from_pyfile("config.py")
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db, directory=MIGRATION_DIR)
|
||||
migrate.init_app(app, db)
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue