How to customize Flask Admin templates? -
i'm trying rtl flask admin template, know can override existing templates, how change css? ideas?
put css changes in new css file in /static/css/my_flask_admin.css
then overwrite html template , include following block:
{% block head_css %} {{ super() }} <link rel="stylesheet" href="{{ url_for('static', filename='css/my_flask_admin.css', _external=true) }}" ></link> {% endblock %}
the super()
call loads original css files , url_for(...
call adds css file afterwards , consequently applies changes original css files.
Comments
Post a Comment