Answers for "linking bootstrap in flask"

1

flask bootstrap

{% extends "bootstrap/base.html" %}
{% block title %}This is an example page{% endblock %}

{% block navbar %}
<div class="navbar navbar-fixed-top">
  <!-- ... -->
</div>
{% endblock %}

{% block content %}
  <h1>Hello, Bootstrap</h1>
{% endblock %}
Posted by: Guest on June-15-2021
0

linking bootstrap in flask

from flask import Flask
from flask_bootstrap import Bootstrap

def create_app():
  app = Flask(__name__)
  Bootstrap(app)

  return app

# do something with app...
Posted by: Guest on June-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language