Remove unneeded flask-assets.
This commit is contained in:
parent
0d38a12cfb
commit
9434e598e8
@ -30,13 +30,11 @@ db = SQLAlchemy(app)
|
||||
|
||||
# Must be after db declaration because some components in blueprints need it.
|
||||
from .api import blueprint as api
|
||||
from .frontend import blueprint as frontend, assets
|
||||
from .frontend import blueprint as frontend
|
||||
|
||||
app.register_blueprint(frontend, url_prefix='/app')
|
||||
app.register_blueprint(api, url_prefix='/api')
|
||||
|
||||
assets.init_app(app)
|
||||
|
||||
|
||||
# Redirect / to frontend index.
|
||||
@app.route('/')
|
||||
|
@ -1,7 +1,5 @@
|
||||
from flask import Blueprint, redirect, url_for
|
||||
|
||||
from flask.ext.assets import Environment, Bundle
|
||||
|
||||
blueprint = Blueprint(
|
||||
'frontend',
|
||||
__name__,
|
||||
@ -9,19 +7,6 @@ blueprint = Blueprint(
|
||||
static_folder='static'
|
||||
)
|
||||
|
||||
# Local asset management
|
||||
frontend_js = Bundle(
|
||||
'frontend/js/app.js',
|
||||
'frontend/js/accounts.js',
|
||||
'frontend/js/operations.js',
|
||||
'frontend/js/scheduler.js'
|
||||
)
|
||||
frontend_css = Bundle('frontend/css/main.css')
|
||||
|
||||
assets = Environment()
|
||||
assets.register('frontend_js', frontend_js)
|
||||
assets.register('frontend_css', frontend_css)
|
||||
|
||||
|
||||
@blueprint.route('/')
|
||||
def index():
|
||||
|
@ -1,7 +1,6 @@
|
||||
alembic>=0.8.2
|
||||
arrow>=0.6.0
|
||||
Flask>=0.10.1
|
||||
Flask-Assets>=0.11
|
||||
Flask-Login>=0.2.11
|
||||
Flask-Migrate>=1.5.1
|
||||
flask-restplus>=0.8.6
|
||||
|
Loading…
Reference in New Issue
Block a user