python - Using Bootstrap's WTF Quick Forms without its CSS -



python - Using Bootstrap's WTF Quick Forms without its CSS -

i'm writing web app flask , i've made css template i'm happy with. want utilize wtf.quick_form() feature bootstrap, can't load bootstrap without overriding own css. want load quick_form() feature. what's best way go this?

well, there's previous question covers topic of using custom css, but, honestly, if you're wanting utilize bootstrap quick_form(), don't have go through of that.

let's have base.html file:

<!doctype html> {% extends "bootstrap/base.html" %} {% import "bootstrap/wtf.html" wtf %} {% block styles %} {{ super() }} <link rel="stylesheet" href="{{url_for('static', filename='style.css')}}"> {% endblock %}

it's suggested elsewhere load 'style.css' file after load 'bootstrap.css' file, can away simple link rel 'style'.css' if want load quick.form(). create sure remember import "bootstrap/wtf.html" in base of operations template or in template file want utilize quick_form().

python css twitter-bootstrap flask

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -