Questions tagged [flask-bootstrap]

100 questions
0
votes
0 answers

Passing SelectField value from javascript to flask while using flask-bootstrap

How to Pass javascript variables to flask? I have a Flask Form created with few SelectFields, on change event I have JavaScript used to capture the selected value and store in a global variable before form submission. How do I pass this global…
rsnayak
  • 340
  • 2
  • 6
0
votes
1 answer

Errors with Flask-WTF, Flask

I've been in the process of creating a Flask application through the past week or so but nothing seems to work. The goal is to create a Pandas Dataframe based on a set of parameters that are meant to be submitted in the form. On the front-end,…
stevene97
  • 95
  • 1
  • 4
0
votes
1 answer

WTForm validation always failed and validators does not generate error message

I have tested my code by typing some wrong thing, but once I click submit, no error message was generated on the screen I also tried to type the right things to try but once I checked with print, it shows that the validation is always failed.…
Suckway
  • 11
  • 5
0
votes
1 answer

Automatically fitting markdown images inside a div

So I am trying to fit markdown text+image inside a panel. I am integrating flask blogging extension into my website. The issue is that this renders the text containing image links and paragraph at once so I cant individually select images to resize…
0
votes
1 answer

How do I get `pip freeze` to use my fork of a Flask module?

Apparently there's a long-standing bug in Flask-Bootstrap that where quick_form omits the label for radio button fields. I found a fix for it. First I applied the fix to my local pip installation of Flask-Bootstrap. Finding that worked, I forked the…
Chuck
  • 4,662
  • 2
  • 33
  • 55
0
votes
2 answers

How to fix modals not showing?

I have a series of 6 modals that are created through a flask/jinja2 frame work loop and 1 modal that is an example outside of the loop. The modals all populate and populate correctly when looking at the page source. The example modal that is…
classydoc
  • 21
  • 4
0
votes
1 answer

cannot override flask_bootstrap css

I am trying to add static css files to my flask application. I am using flask_bootstrap and I cannot manage to implement it correctly - I believe I followed the documentation at https://pythonhosted.org/Flask-Bootstrap/basic-usage.html but…
cerrach
  • 187
  • 3
  • 14
0
votes
1 answer

Bootstrap 3.3.7 - Loading gif in button when running a function on another route

I have some buttons on my flask app, that when clicked trigger a function on a different route. I want to add a loading gif when the page is waiting for the function to complete. I have tried a dozen examples from SO but I've had no luck. Note,I am…
Jason
  • 2,834
  • 6
  • 31
  • 35
0
votes
1 answer

Passing Flask WTForms validations to Bootstrap Alerts via Flask-Bootstrap

new Flask user here...I am building a pretty file upload button for my flask app. The button essentially makes use of WTForms to validate that only csv and txt files can be uploaded. The upload works, but how can I pass validation errors to the…
Jason
  • 2,834
  • 6
  • 31
  • 35
0
votes
1 answer

Flask: Using WTForm on another Page than the one rendering the form itself

I have the following setup: The rendering page: @app.route('/one', methods=['GET']) def one(): form = AnyForm() return render_template( 'form.html', form=form ) The template (stripped to the basic): {{ wtf.quick_form(form,…
Dakkar
  • 5,682
  • 5
  • 22
  • 28
0
votes
2 answers

Flask not recognizing my custom style sheet

I am rendering a template that I am attempting to style with a custom style sheet. The file structure is as follows: /app - __init__.py /templates - markets.html - base.html /static - custom.css markets.html…
Logicman
  • 129
  • 2
  • 14
0
votes
1 answer

Flask sidebar shows up at the top, not on the side

I am writing a simple Flask app, and I want a sidebar to always be present. I tried using the template below, but for some reason the sidebar appears at the top, not on the left-hand side where I want it. Here's what it looks like: and here's…
user3490622
  • 939
  • 2
  • 11
  • 30
0
votes
1 answer

What would happen if I overwrite the default flask-bootstrap head and scripts blocks?

I am learning to use flask-bootstrap extension in my app. But when I copied demo html codes from getbootstrap, it didn't work as the official site demonstrated. So I overwrote the head block and scripts block in my base template, then it works…
Bicheng
  • 687
  • 8
  • 20
0
votes
2 answers

flask-nav not working with flask-bootstrap sample application

I'm trying to recreate this sample app that is supplied with flask-bootstrap, but have run into an issue rendering the navbar. I get the error: inja2.exceptions.UndefinedError: 'flask_nav.Nav object' has no attribute 'fronend_top' The example app is…
nicholas.reichel
  • 2,260
  • 7
  • 20
  • 28
0
votes
1 answer

Flask-bootstrap customizing Flask-security

I am using Flask-security and I have not been able to integrate Flask-bootstrap in order to customize the user interface of the login, register, and other pages. The project is hosted here: https://github.com/fbenavides69/control-escolar I have…
Francisco
  • 519
  • 1
  • 5
  • 15