Comments (2)
Minimal example of that error:
from flask import Flask
import flask.ext.assets
app = Flask(__name__)
assets = flask.ext.assets.Environment()
assets.init_app(app)
assets.load_path = ["src"]
@app.route('/')
def home():
return "Hello World!"
if __name__ == "__main__":
app.run(debug=False)
from flask-assets.
When using init_app, Flask extensions are not supposed to set the .app property.
You need to put an app on the stack:
with app.app_context():
assets.load_path = ["src"]
from flask-assets.
Related Issues (20)
- Update for newer webassets version? Cleancss is broken in old version (since cleancss@4) HOT 2
- Project dead? HOT 1
- webassets.exceptions.FilterError [less]
- webassets.exceptions.FilterError [SCSS] subprocess returned a non-success result code
- is there a way to configure flask-assets to use the "_external=True" option for asset urls
- Fix simple typo: preferrable -> preferable
- How to inline css
- no module named 'flask assets'
- Tailwind build depends on html in template folder. Changes not being detected. HOT 3
- Clashing of subdirectories of 'static' folder and blueprints with same name HOT 1
- Flask-Asset Not finding a file mentioned in Bundle HOT 1
- Feature request: Support mypy type checking?
- How to use parameter with filter
- Jinja2 Base template loaded twice when upgrading werkzeug package
- flask-assets will break in flask-2.3 HOT 3
- Flask Bundle remove white space after variables enclosed in ${} in Template strings in JavaScript
- flask-assets breaks in flask-3.0 HOT 3
- Migrate from nose to pytest
- Awesome python
- Clean up formerly nose tests (`setup` -> `setup_method`)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-assets.