diff --git a/accountant/__init__.py b/accountant/__init__.py index 069dea4..04ea72d 100644 --- a/accountant/__init__.py +++ b/accountant/__init__.py @@ -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('/') diff --git a/accountant/frontend/__init__.py b/accountant/frontend/__init__.py index 6832a0d..ed93501 100644 --- a/accountant/frontend/__init__.py +++ b/accountant/frontend/__init__.py @@ -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(): diff --git a/requirements.txt b/requirements.txt index 7d67bbb..0bdcaf0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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