skip to Main Content

The automatic supplied css file of Flask-bootstrap is like this:

<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

It is version 3. Is there any way to use bootstrap4 in flask-bootstrap? For now, I just change the css and js files to version 4 in my base template. But I am wondering if this will make some subtle problems.

2

Answers


  1. You need to install Bootstrap4 explicitly:

    pip install Flask_Bootstrap4

    Login or Signup to reply.
  2. Bootstrap-Flask is an alternative for Flask-Boostrap that supports Bootstrap 4. There is also a migration tutorial, maybe you can give it a try.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search