mirror of
https://github.com/Project-Redacted/Highscores-Server.git
synced 2025-05-23 11:54:52 +00:00
Add templates and many other things
This commit is contained in:
parent
330201be3a
commit
62945c943d
414 changed files with 14758 additions and 4145 deletions
|
@ -1,12 +1,21 @@
|
|||
from flask import Flask
|
||||
from server.extensions import db, migrate, cache
|
||||
from server.views import blueprint
|
||||
from flask_assets import Bundle
|
||||
from server.extensions import db, migrate, cache, assets
|
||||
from server import views, auth
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_pyfile('config.py')
|
||||
|
||||
db.init_app(app)
|
||||
migrate.init_app(app, db)
|
||||
cache.init_app(app)
|
||||
|
||||
app.register_blueprint(blueprint)
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
|
||||
assets.init_app(app)
|
||||
styles = Bundle("style.sass", filters="libsass, cssmin", output="gen/styles.css", depends="style.sass")
|
||||
assets.register("styles", styles)
|
||||
|
||||
cache.init_app(app)
|
||||
app.register_blueprint(views.blueprint)
|
||||
app.register_blueprint(auth.blueprint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue