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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -