Questions tagged [flask-assets]

Flask-Assets is an extension for Flask, it helps with easy integration of webassets into a Flask app. Use this tag for related questions.

Flask-Assets is an extension for the framework. It allows one to easily integrate functionality into a Flask app. For more information visit its homepage.

48 questions
0
votes
1 answer

Flask assets searching in the wrong directory

I am trying to get Flask-Assets to load my assets. My css is here: /home/myname/projects/py/myapp/myapp/static/css/lib/somecsslib.css It is by default looking in the wrong directory. I get this: No such file or directory:…
Johnston
  • 20,196
  • 18
  • 72
  • 121
0
votes
1 answer

Flask import static resources

The problem: I get a 404 when I access static resources from any route other than '/'. I have an image called volume.png in my static folder in my Flask application. When I route my main page to '/' using @app.route('/') it finds the image fine, and…
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
-1
votes
1 answer

RuntimeError: assets instance not bound to an application, and no application in current context

I'm working to modify a cookiecutter Flask app. I'm currently trying to add a datepicker to a page. I've found https://eonasdan.github.io/bootstrap-datetimepicker/. This cookiecutter uses flask-assets to manage the project assets. Following…
user1592380
  • 34,265
  • 92
  • 284
  • 515
1 2 3
4