Bicheng
Bicheng

Reputation: 727

How to use Bootstrap 4 in Flask-Bootstrap?

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.

Upvotes: 6

Views: 3452

Answers (2)

Grey Li
Grey Li

Reputation: 12762

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.

Upvotes: 0

PEC
PEC

Reputation: 61

You need to install Bootstrap4 explicitly:

pip install Flask_Bootstrap4

Upvotes: 2

Related Questions