Questions tagged [flask-bootstrap]
100 questions
3
votes
1 answer
Flask - A blueprint's name collision occurred
I met a issue. The console said A blueprint's name collision occurred but I think it's not belong flask-bootsrap problem. I believe I have some config or unknown something which it let me met the issue.
Traceback (most recent call last):
File…

Tony
- 1,019
- 2
- 13
- 25
2
votes
3 answers
Adjust bootstrap within jinja template (Flask Framework)
I would like to adjust default bootstrap class formatting within jinja template. The only thing, what I want to do, is to change the color of the h1 element. But unfortunately, it is still black.
I am using flask and render_template module.
I have…

Vaclav Vlcek
- 317
- 1
- 6
- 17
2
votes
1 answer
Flask-Bootstrap navbar not functioning properly
So, here is what I have in my app.py file:
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
app = Flask( __name__)
Bootstrap(app)
@app.route('/')
def hello():
return render_template('index.html')
if __name__ ==…

user9695260
- 347
- 3
- 17
2
votes
1 answer
Migrating from Flask-Bootstrap to Bootstrap-Flask
I started developing my Flask web app using Flask-Bootstrap (which uses Bootstrap V3) but now find I need Bootstrap 4 features. After a bit of searching it seems that Bootstrap-Flask should do the job. It is a fork of Flask-Bootstrap for V4.
However…

nakb
- 321
- 1
- 3
- 16
2
votes
3 answers
ModuleNotFoundError: No module named 'flask_bootstrap'
I'm working on my very very first python program/assignment, I'm new to not just the language but it's also my first time outside of languages like Java, C#, and .Net, so I'm having a difficult time picking it up.
I was given a bunch of example…

Citrus Rain
- 119
- 1
- 4
- 16
2
votes
1 answer
Why is the StringField always None?
I'm trying to read a form using Flask, WTForms and the macros that are made available via flask-Bootstrap. This works in some cases and in other - seemingly similar ones - it doesn't. When I check the content of a specific StringField it always…

Midnight
- 373
- 2
- 11
2
votes
1 answer
Render WTF FieldList of SelectFields with Bootstrap
I would like to render a flask_wtf form with bootstrap/wtf.html.
The form contains a regular SelectField and a FieldList of SelectFields.
To render the single SelectField works fine using the function wtf.form_field.
However, applying the same…

otwtm
- 1,779
- 1
- 16
- 27
2
votes
1 answer
How to refresh front page after back-end task completed
I'm design a web application with python flask, the processing flow is like:
User choose a specified a URL, and ask server site to do some time-consuming task;
The time-consuming task is then running in a new thread;
After #2 is done, server will…

Matt
- 67
- 1
- 2
- 6
2
votes
4 answers
jinja2.exceptions.UndefinedError: 'bootstrap_find_resource' is undefined
This is my very first post, so excuse me for any mistakes...
I'm building a Flask App and using Flask Bootstrap, but I can't find out why I'm getting this error since this method belongs to the base.html template of the flask-bootstrap package.
File…

Diego Medeiros
- 463
- 5
- 9
2
votes
2 answers
Flask Nav with Flask Bootstrap: 'Navbar' object has no attribute 'kwargs'
In this code Flask Nav works until I add the Flask Bootstrap code:
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_nav import Nav
from flask_nav.elements import Navbar, Subgroup, View, Link, Text,…

Joe Gillon
- 107
- 10
2
votes
2 answers
How to define a custom error message for RecaptchaField using Bootstrap/wtf template to display it
I'm using bootstrap/wtf.html template to display my forms. All my form input fields have wtform validators allowing me to define a custom error message. Unfortunately the RecaptchaField imported from flask_wtf does not seem to support validators…

user5228239
- 103
- 1
- 1
- 5
2
votes
0 answers
I can't get Flask-Bootstrap to render columns correctly
I'm copy/pasting code from the Bootstrap site and even so, I can't get anything to render.
Instead of:
column______________column________________column
I get:
column
column
column
__init__.py
from flask import Flask
from flask_bootstrap import…

Nick Bonne
- 75
- 7
2
votes
1 answer
Combining Flask, Bootstrap and Dash apps
I will briefly explain my current situation.
app1 & app2 are dash app and reloaded every 5 seconds. And basically, everything works fine. But when I move to app2 tab by clicking the app2 button on my bootstrap navigation menu, I still can see the…

su79eu7k
- 7,031
- 3
- 34
- 40
2
votes
2 answers
flask-bootstrap quick_form missing Submit button
Trying to use flask-bootstrap quick_form.
HTML template my-form.j2:
{% import "bootstrap/wtf.html" as wtf %}
{% extends "layout.j2" %}
{% block content %}
My form
{{ wtf.quick_form(form) }} {% endblock content %} Form class: class…
TrickiDicki
- 143
- 2
- 13
2
votes
3 answers
meaning of `button_map` in the form_field definition in flask-bootstrap
I am reading the documentation of flask-boostrap doc. In the form_field definition, what is the purpose of the button_map?
form_field(field, form_type="basic", horizontal_columns=('lg', 2, 10), button_map={})

nos
- 19,875
- 27
- 98
- 134