Answers for "how to link css file flask"

CSS
1

load css file flask

{{ url_for('static', filename='style.css') }}
Posted by: Guest on February-14-2021
0

linking custom CSS in flask

{% block styles %}
{{super()}}
<link rel="stylesheet"
      href="{{url_for('.static', filename='mystyle.css')}}">
{% endblock %}
Posted by: Guest on June-05-2021

Browse Popular Code Answers by Language