Questions tagged [flask-bootstrap]
100 questions
2
votes
1 answer
flask-bootstrap bootstrap_find_resource
looking to specify the themed css for bootstrap. can't get bootstrap_find_resource to look to my locally placed css files. Seems to continue to pull from the /site-packages/flask_bootstrap location.
the current default for bootstrap css is pointing…

user2647293
- 25
- 1
- 7
1
vote
3 answers
cannot import name 'Bootstrap5' from 'flask_bootstrap'?
I am trying to import Bootstrap5 from flask_bootstrap in my Python code on a Mac M1 using Python3. However, I get an import error saying that the name Bootstrap5 cannot be imported from flask_bootstrap. Here's the code snippet:
from flask import…

MeravigliaTitti
- 39
- 5
1
vote
1 answer
Need to run 2 Loops in the same statement in Flask
This is the
Actual Output
that I am getting. I need it to look like this.
This is the code I'm using to show the "bunkable" value but I'm not getting proper output. Bunkable is a list and the datas is a list of tuples from SQLite. Any suggestions on…

macintushar
- 29
- 6
1
vote
1 answer
Using a Bootstrap theme with Flask-Bootstrap
I'm new to UI web development with Flask and have tried some sample projects with Flask-Bootstrap. Is it possible to use a custom Bootstrap "theme" with Flask-Bootstrap? I'd like to use this theme for my website:…

randomdatascientist
- 529
- 3
- 16
1
vote
2 answers
file gets unresolved warning when trying to extend to html file
I'm trying to use flask-bootstrap in my project and I want to extend my html with bootstrap/base.html , but It can't recognise the file. Here is the Python code (only the part that matters):
from flask import Flask, render_template
from loggin_form…

younes alaoui
- 57
- 6
1
vote
1 answer
Flask Bootstrap 404 Static Resources on Non-Root Paths
I have a Flask app using Flask Bootstrap (V3.3.7.1), using the local serving of the bootstrap files.
bootstrap = Bootstrap(app)
app.config['BOOTSTRAP_SERVE_LOCAL'] = True
I am embedding this application into an iFrame which passes these requests…

mattdonders
- 1,328
- 1
- 19
- 42
1
vote
1 answer
Use wtfroms without using flask-bootstrap
I'm starting to create a login-signup web page for a project and for that I would like to use "wtforms" but I can't find any examples without using the flask-bootstrap library.
Can I use wtform without flask-bootstrap?
I did some experiments but it…

Giuseppe
- 39
- 1
- 9
1
vote
2 answers
How to add a background using CSS in my Flask app.?
I am new to Flask and trying to add a background image to all of the pages of my web app. I have saved the background image as 'background-image.jpg' in an 'images' folder within a 'static' folder, in the project. Here is my 'base.html' file which…

watermelon123
- 357
- 2
- 3
- 12
1
vote
1 answer
Pyinstaller - Flask template not found "bootstrap/base.html"
I am trying to make a distributable of a flask application. Everything works fine when running locally. When an executable is generated with pyinstaller it gives me the error:
Traceback (most recent call last):
File "site-packages\flask\app.py",…

yanarp
- 165
- 8
1
vote
1 answer
How do i add to flask-bootstrap template
Am not getting the expected results through my browser because of This request has been blocked; the content must be served over HTTPS.
I have tried adding this
{% block head %}
{{super()}}

masete
- 39
- 7
1
vote
2 answers
'Fieldlist' / 'FormField' not rendering properly with flask_wtf
I use fieldlists in wtforms with flask but their default values do not render correctly.
In the example below the Fieldlist has a min_entries value of 1 and I add two additional entries via the append_entry() method.
The additional two entries do…

mchl_k
- 314
- 1
- 10
1
vote
2 answers
Flask - Bootstrap in base.html
I want to add Bootstrap to my website. I have base.html and other files, which inherit from base.html, but in my base.html I want to have navbar, which will be displayed on every site. Unfortunately, after adding some bootstrap code, it''s no…

Frendom
- 508
- 6
- 24
1
vote
1 answer
Flask-Security login invalid password issue
I am implementing flask-security for simple registration and login, yet for some reason, I have not been able to understand or find, why after successful registration and successful login when I try to again login I get 'invalid password'.
I am…

Francisco
- 519
- 1
- 5
- 15
1
vote
2 answers
How to replace brand text with an image in flask-nav
I've got a nav-bar showing in my flask-bootstrap application by importing flask-nav and using the following:
@nav.navigation()
def mynavbar():
return Navbar(
'MyCompany',
View('Main', 'index'),
View('Config', 'config'),
…

Keir Finlow-Bates
- 993
- 2
- 14
- 27
1
vote
0 answers
passing string with html tags to html from python
I have a result list which I am passing from python to my html document
like this:
from flask import render_template
from flask_bootstrap import Bootstrap
render_template('search.html', results=result)
result is a list of lists and it looks like…

Ram Charran
- 131
- 1
- 3
- 14