Questions tagged [flask-bootstrap]

100 questions
1
vote
1 answer

Why won't the flask app import the flask-bootstrap base.html template when deployed to Heroku?

I have no problem getting it to work on my local machine but when deployed to Heroku the flask-bootstrap asset won't import the base.html file which is located in the virtual environment. And I can't find any errors in the logs or the console. Do I…
1
vote
1 answer

how to override default theme of bootstrap in flask_bootstrap environment

I am making an application by using flask and flask_bootstrap. I choose a theme from this web site. You can edit the variables of that theme online to customize it. And at last you can download the edit result as bootstrap.css to your local. Now I…
urbainy
  • 57
  • 1
  • 12
1
vote
0 answers

How do I get integrated Flask-Bootstrap to work with my Flask Project?

I have the flask-bootstrap already installed and imported into my project through a virtualenv. I am trying to initiate the 'base.html' template that comes with the flask-bootstrap package but when I load my project, the website doesn't display any…
Evans I.
  • 11
  • 4
1
vote
0 answers

Flask, bootstrap 3 app with modal; escape key causes broken pipe

The application is based on flask and bootstrap 3. I have a modal with the options (data-backdrop="static", data-keyboard="false") to keep it from being closed when users click or use the escape key. Clicks are ignored but the escape key causes…
0
votes
0 answers

What is the right combination of packages to use for Flask, Flask-Bootstrap, and SQLAlchemy?

I'm trying to complete a project on the Python 100 Days of Code by Angela Yu, this particular project just wont work and I feel like I've tried every possible combination of package versions. I've gone through every different error message on here…
0
votes
1 answer

Flask / Bootstrap not showing image

I have this python flask bootstrap function: # Index page (main page) @app.route('/') def index(): return render_template('test.html') And my run code: if __name__ == '__main__': app.run(debug=True) Of course the default folder will be…
Hein du Plessis
  • 3,305
  • 6
  • 34
  • 51
0
votes
1 answer

Flask-Bootstrap | WTForms support | Position

How can I position "101010" next to the first label, blue position, using wtf.quick_form()? enter image description here enter image description here **expectation: ** enter image description here I have done: I changed the position of {{ 101010 }}…
0
votes
1 answer

Flask wtform labels does not render after deleting flask-bootstrap

I changed my mind about using flask-bootstrap and uploaded my CSS. But after that, all labels disappeared in my form. Only the fields themselves remained. What am I doing wrong? These are HTML: {% block content %} {% block prepare %}
kannt_im
  • 9
  • 3
0
votes
0 answers

Load modules separately in Flask + bootstrap

I am developing a small app with flask and bootstrap. I would like to be able to make different separate modules for the user interface (a menu that will occupy the entire left column, and a central work panel with several sub-panels). I would like…
Joe
  • 49
  • 6
0
votes
0 answers

How can I fix SyntaxError in flask_bootstrap?

Is there a fix or a workaround as the SyntaxError points to the __init__.py file as written below? Executing from flask_bootstrap import Bootstrap on Python shell lands me into a "SyntaxError: invalid syntax". >>> from flask_bootstrap import…
0
votes
1 answer

Using flask_bootstrap and cant seem to over ride CSS,

I can't seem to get the CSS to override the bootstrap CSS. I have done a very clear change while trying to get it to work by changing the body background color. My working dir End result This is my Main.py from flask import Flask,…
MattC03
  • 25
  • 4
0
votes
0 answers

Flask: Bootstrap live search not working through render_kw in SelectField

My Flask web application form has a drop-down box with the list of all countries in the world. However, it gets tedious for the user to scroll and find the appropriate country they're looking for. Therefore, I'm trying to apply 'data-live-search' in…
0
votes
1 answer

Problem importing bootstrap templates in flask

I'm new to flask and right after starting a training I hit the wall... There's the following project structure: flask_project_directory | +- start.py | +- [templates] | +- [bootstrap] | | | +- base.html | +- 404.html +-…
AbreQueVoy
  • 1,748
  • 8
  • 31
  • 52
0
votes
1 answer

how to convert a logo of Navbar(logo, View('Home', ... from Flask-Nav module to a clickable link

in python code part (as app.py) in the part of menubar we can define our navebar as : # Define navbar with logo # ####################################################### logo = img(src='/static/img/logo192.png',…
Fethi Pounct
  • 1,059
  • 5
  • 6
0
votes
0 answers

Bootstrap grid is not working with Flask setup

EDIT: I was using the wrong version of bootstrap. Using the CDN links for bootstrap 5.0 solved the issue. Thanks SO! I am new to Flask/bootstrap and I tried the following example but the rendered page gave me stacked results (see second screenshot)…
KHT
  • 13
  • 6