# flake8: noqa
from flask import Flask
from flask_assets import Environment, Bundle
from flask_compress import Compress
from flask_cache import Cache

app = Flask(__name__)

#App config
app.config.from_pyfile('config.py')

# Flask Assets
assets = Environment(app)
js = Bundle('js/map.js', filters='jsmin', output='js/map.min.js')
assets.register('map_js', js)

# Flask Compress
Compress(app)

# Flask Cache
cache = Cache(app, config={'CACHE_TYPE': 'simple'})

import application.views

# flake8: noqa
from flask import Flask
from flask_compress import Compress
from flask_cache import Cache

app = Flask(__name__)

#App config
app.config.from_pyfile('config.py')

# Flask Compress
Compress(app)

# Flask Cache
cache = Cache(app, config={'CACHE_TYPE': 'simple'})

import application.views

remove flask assets from init