Anyone know how can i access image file from static folder to us in my css background property? I'm using flask web framework | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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.

2nd Feb 2020, 7:01 PM
sam
sam - avatar
2 Réponses
2nd Feb 2020, 7:53 PM
Sudarshan Rai
Sudarshan Rai - avatar
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>
26th Apr 2020, 8:16 PM
Safwan Faraj
Safwan Faraj - avatar