Questions tagged [flask-bootstrap]

100 questions
0
votes
1 answer

Flask - jinja2.exceptions.TemplateNotFound

I am following along with the Flask Mega Tutorial and I'm trying to use flask_bootstrap but keep getting the error jinja2.exceptions.TemplateNotFound: bootstrap/base.html. In the app folder there is an init.py file were I initialize bootstrap from…
squidg
  • 451
  • 6
  • 17
0
votes
1 answer

How to use subfolders with Flask Blueprints?

So I'm fairly new to Flask, but now I'm trying to use it for a project in a team, and, as all good projects should, we wanted to have a good folder structure to keep everything nice, neat and organised however we keep running into problems with…
OscarF123
  • 31
  • 2
  • 8
0
votes
1 answer

Active button in WTForms Flask SelectField with dynamic choices

Im trying to add into the dynamic choices of WTForms Flask SelectField 1 static option. At this moment I have a category_list, which one works by query in to the db, and include all avaliable choices for each user. I want to add in this selectfield…
0
votes
1 answer

Flash Messages aren't appearing on page

I'm creating a currency converter using python and flask, and trying to flash error messages for invalid inputs. The form automatically routes to the error checks upon submission. I have been manipulating the inputs to purposely raise errors and a…
0
votes
0 answers

GET 404 failed to load resource error in flask bootstrap

While loading in my flask app I'm getting an internal server 404 GET error. The files that it claims are missing are exactly where they are listed not to be. 127.0.0.1 - - [06/Sep/2020 08:05:28] "GET /static/bootstrap/js/bootstrap.bundle.min.js…
Aviv T
  • 5
  • 2
0
votes
1 answer

How to put two html elements on the same line on opposite sides

I am trying to style this (I am using bootstrap): Here is the code:

My Wishlist ({{ productList|length }} items)

{% for product in productList %} …
Scott
  • 121
  • 1
  • 2
  • 9
0
votes
0 answers

JavaScript not finding elements when using Flask extend templates

The JavaScript on my website doesn't seem to be working at all, since I started using the extend feature, using a base.html file to store the nav bar and footer. I really really can't work out why it isn't working. The css is working absolutely…
0
votes
1 answer

How to use bootstrap locally with flask

I did my best to try to use bootstrap locally with flask on a computer (without internet connection). My folders are like that : Templates -layout.html -bootstrap -css -bootstrap.min.css -js -bootstrap.min.js …
Cheen
  • 86
  • 3
  • 12
0
votes
0 answers

No module named 'flask_bootstrap'

Though i install flask_bootstrap with pip command and also tried it installing from tar package but when i import with the statement i.e from flask_bootstrap import bootstrap it gives an error of no module name flask_bootstrap . Please help any one…
0
votes
1 answer

bootstrap_find_resource do not serve local files

I am using Flask-Bootstrap package for my Flask application, however when I am creating a template as described in docs: {% extends "bootstrap/base.html %} page source displays this:
w8eight
  • 605
  • 1
  • 6
  • 21
0
votes
0 answers

Pyinstaller - Flask template not found “bootstrap/base.html”

I am trying to make a distributable 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", line…
0
votes
2 answers

How to fix Flask-Bootstrap4 Internal Server Error for double route on flask

I just installed flask-bootstrap and run it in my localhost. But I always getting Internal Server Error message when visiting "/dinner/" route. How to fix this error? Thanks Internal Server Error The server encountered an internal error and was…
flyingduck92
  • 1,449
  • 2
  • 23
  • 39
0
votes
1 answer

Flask_Bootstrap4 wtf quick form not showing errors

So in flask, I recently downloaded flask_bootstrap4, which is the same thing as flask_bootstrap (bootstrap 3) except for flask_bootstrap4, it uses bootstrap 4 instead of bootstrap 3. In my templates, I use this code for all my forms: {% import…
0
votes
1 answer

How to Make a 'Facebook Wall'-Style Post/Comment Structure

I am following the Flask Mega-Tutorial which implements a kind of Post functionality with Create/Update/Delete happening on separate pages. However, i would like to try to make some kind of Facebook Wall type of posting where it is possible to…
norsemanGrey
  • 345
  • 4
  • 10
0
votes
2 answers

How to create uWSGI entry point file for flask-bootstrap example app?

I'm having trouble writing a uWSGI entry point file that will load flask-bootstrap sample as my app is not structured to start from if name == "main": I'm just trying to use the flask-bootstrap example files which has a different Flask app.py where…
Lily Su
  • 11
  • 2