0
Anyone know how can i access image file from static folder to us in my css background property? I'm using flask web framework
Accessing image file from static folder to use as css background value with flask application.
2 Réponses
+ 1
//Not a flask user but i found this ,
https://stackoverflow.com/questions/48938957/css-background-images-with-flask
0
Personally, I work with my app work with Flask web developer sites:
----------------------------------------------------------------------------------
<div class="col-sm-6 col-md-4">
<img alt="100%x200" class="img-thumbnail img-responsive" src="{{ rl_for('static', filename='uploads/' + entry.image) }}" data-holder-rendered="true" style="height: 125px; width: 125px; display: block;">
</div>