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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -