Rename assets environment to play nicely with script/setup
This commit is contained in:
parent
891d67de9e
commit
a9d1390704
@ -5,7 +5,7 @@ from flask import Flask, request, g
|
|||||||
from unipath import Path
|
from unipath import Path
|
||||||
|
|
||||||
from atst.database import db
|
from atst.database import db
|
||||||
from atst.assets import assets
|
from atst.assets import environment as assets_environment
|
||||||
|
|
||||||
from atst.routes import bp
|
from atst.routes import bp
|
||||||
from atst.routes.workspaces import bp as workspace_routes
|
from atst.routes.workspaces import bp as workspace_routes
|
||||||
@ -29,7 +29,7 @@ def make_app(config):
|
|||||||
make_flask_callbacks(app)
|
make_flask_callbacks(app)
|
||||||
|
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
assets.init_app(app)
|
assets_environment.init_app(app)
|
||||||
|
|
||||||
app.register_blueprint(bp)
|
app.register_blueprint(bp)
|
||||||
app.register_blueprint(workspace_routes)
|
app.register_blueprint(workspace_routes)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from flask_assets import Environment, Bundle
|
from flask_assets import Environment, Bundle
|
||||||
from atst.home import home
|
from atst.home import home
|
||||||
|
|
||||||
assets = Environment()
|
environment = Environment()
|
||||||
|
|
||||||
css = Bundle(
|
css = Bundle(
|
||||||
"../scss/atat.scss",
|
"../scss/atat.scss",
|
||||||
@ -10,4 +10,4 @@ css = Bundle(
|
|||||||
depends=("**/*.scss"),
|
depends=("**/*.scss"),
|
||||||
)
|
)
|
||||||
|
|
||||||
assets.register("css", css)
|
environment.register("css", css)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user