5

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.

Grey Li
  • 11,664
  • 4
  • 54
  • 64
Bicheng
  • 687
  • 8
  • 20

2 Answers2

2

You need to install Bootstrap4 explicitly:

pip install Flask_Bootstrap4

PEC
  • 71
  • 5
0

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.

Grey Li
  • 11,664
  • 4
  • 54
  • 64