Remove unneeded flask-assets.

Alexis Lahouze committed 2016-02-18 15:55:34 +01:00
1 parent 0d38a12cfb
commit 9434e598e8
3 files changed
+1 -19

No files matched your search

+1 -3
@@ -30,13 +30,11 @@ db = SQLAlchemy(app)
# Must be after db declaration because some components in blueprints need it. # Must be after db declaration because some components in blueprints need it.
from .api import blueprint as api 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(frontend, url_prefix='/app')
app.register_blueprint(api, url_prefix='/api') app.register_blueprint(api, url_prefix='/api')
assets.init_app(app)
# Redirect / to frontend index. # Redirect / to frontend index.
@app.route('/') @app.route('/')
-15
@@ -1,7 +1,5 @@
from flask import Blueprint, redirect, url_for from flask import Blueprint, redirect, url_for
from flask.ext.assets import Environment, Bundle
blueprint = Blueprint( blueprint = Blueprint(
'frontend', 'frontend',
__name__, __name__,
@@ -9,19 +7,6 @@ blueprint = Blueprint(
static_folder='static' 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('/') @blueprint.route('/')
def index(): def index():
-1
@@ -1,7 +1,6 @@
alembic>=0.8.2 alembic>=0.8.2
arrow>=0.6.0 arrow>=0.6.0
Flask>=0.10.1 Flask>=0.10.1
Flask-Assets>=0.11
Flask-Login>=0.2.11 Flask-Login>=0.2.11
Flask-Migrate>=1.5.1 Flask-Migrate>=1.5.1
flask-restplus>=0.8.6 flask-restplus>=0.8.6