mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-18 09:24:52 +00:00
Add base template and unuasble style
This commit is contained in:
parent
8bf194f936
commit
0af071992b
10 changed files with 94 additions and 53 deletions
17
Highscore-Server/server/server.py
Normal file
17
Highscore-Server/server/server.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue