Intro to Flask-Bootstrap


[ad_1]
https://i.ytimg.com/vi/PE9ZGniSDW8/hqdefault.jpg



I demonstrate how to use Flask-Bootstrap in this video. Flask-Bootstrap is a great way to have Bootstrap included in your Flask app without you having to think about including the resources yourself.

Get the code here:
https://prettyprinted.com/blog/577501/intro-to-flask-bootstrap

Get the Flask cheat sheet here: http://prettyprinted.com/flaskcheatsheet

Flask Bootstrap docs:
https://pythonhosted.org/Flask-Bootstrap/

Web Development Courses: https://prettyprinted.com
Flask Cheatsheet: https://prettyprinted.com/flaskcheatsheet

Subscribe: http://www.youtube.com/channel/UC-QDfvrRIDB6F0bIO4I4HkQ?sub_confirmation=
Twitter: https://twitter.com/pretty_printed
Facebook: https://www.facebook.com/prettyprintedtutorials/
Github: https://github.com/prettyprinted
Instagram: https://www.instagram.com/pretty_printed
Google Plus: https://plus.google.com/+PrettyPrintedTutorials

Original source


36 responses to “Intro to Flask-Bootstrap”

  1. When flask-bootstrap generates the html the link it creates for bootstrap.min.css has part of my server url on the start of it so my app trys to reach the wrong url. I get <link href="/usr/225//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" instead of <link href="/cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css". What would I have to edit for it to generate the correct url?

  2. So why use Flask Bootstrap rather than creating a layout and adding the bootstrap CDNs in the layout template? In my experience modules like this add a lot of overhead without adding a lot of value. Am I missing something?

  3. +Pretty Printed Kinda confused here and couldnt find a good answer on google; so I made a html file with only the navbar in it, navbar.html with the block {% block navbar %}. How do I import my navbar to all my html files?

  4. First of all Thanks for your videos, they are great.

    Some people like me live in low speed internet connection which they don't have high speed network.
    I have to watch your video in 480p, and I can't see very well your codes.
    would you record your videos in bigger resolution?

Leave a Reply