Category "flask"

How to synchronize a windows folder in python flask app with a sqlite database table?

I am looking for a solution to compare filenames inside sqlite database with filenames in a windows directory (app.config['UPLOAD_FOLDER']). I have a sqlite da

running python script drawing svg image based on html inputs inside flask app

Assuming I've got a flask app I would like to call a python script, which would take the values of some inputs within the page (texts, selects, etc.) and then c

werkzeug.routing.BuildError: Could not build url for endpoint robotReports' with values ['id']. Did you mean 'reports' instead?

im working on a website with flask so im trying to generate an url to see the reports linked to robots , so i have this route : @app.route("/robotReports/<in

Trying to set up flask with nginx and gunicorn

I have followed a simple guide, and trying to show my flask application, but it wont show. I am running everything through ssh on a ubuntu server. Have my flask

Flaskr tutorial ModuleNotFoundError No module named Flaskr

I am going through the flask tutorial up to the Test Coverage section. And after finishing writing all the test files listed in the tutorial documentation I get

Flask application doesn't take into account the arguments in app.run()?

I have this issue : I use arguments to set the port and the debugger on like this if __name__ == '__main__': app.run(port=4200, debug=True) but it isn't ta

ModuleNotFoundError: No module named 'telebot' on heroku

This is the official document https://github.com/python-telegram-bot/python-telegram-bot. How do I using pip install python-telegram-bot --upgrade on heroku. Th

Flask Unique SQLAlchemy with Flask-LImiter

I want to make a project with flask where you sign up and sign in and then you can make new posts. I use flask-limiter to prevent users from making new posts. A

Images with Firebase and Python Flask API

I am currently developing an API using Firebase from google and Python's Flask libraries. It is a proyect where I am in need of saving images to the DB and then

Error trying to create a database: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file

I'm trying to create a database using Flask and Sqlite3, I am not sure this error is about the file path, as you can see in my code I have tried out different w

How to get all checked items in SelectMultipleField in WTForms + Flask

I have a SelectMultipleField but when I try to access checked items, thought form.fields.data I only get the first of them. More over, by trying to get answers

Bad Request | CSRF Token Not Found | CSRF Handling for Flask WTF

The Issue I work for a couple of simple volunteering organizations helping with management and running campaigns, but we needed a system to track peoples hours

Updating database after reordering Datatable

I'm struggling with the datatables reordering. I want when user reorder to update table in the database. For this to happen i need: to configure the datatable t

Flask static send from localhost to server

I am deploying an application on localhost and listening on a port on a remote server which is bound to a domain, the application shows up fine on localhost and

Set "selected" tag in responsive dropdown and select using Flask and jinja2

I have a flask server which sends a dictionary of options to a dropdown or selection (in form). Here is the Python code: @app.route("/", methods=['GET']) def in

google oauthn error 400 redirect_uri_mismatch after deploy my application on Elastic beanstalk

I am trying to use google authentication on my application. And it does work fine on my localhost and I can login by my google account. However after I deploy t

Is there a way make tests Flask and Firebase?

I have a Flask app. Authentication is provided by Google Firebase. I want to make url tests with any Python/Flask libraries? Is there a way? For example: /api/g

Flask select which form to POST by button click

I'm trying to have only one of two forms POST depending on which button from a btn-group is selected. Currently all of the forms POST with no issue, but there a

How to get progress of file upload using requests.post() if the file was just uploaded via form-data? (Not sure whether this is a streaming process)

Suppose I'm running some kind of web service with python & flask aiming to provide file upload. It should be noted that my service is only a kind of transfe

Github Actions workflow : can't change working directory - Error: An error occurred trying to start process '/usr/bin/bash' with working directory

I want to create a Github workflow to run the tests of my Flask application at each merge request. This is the first time I'm writing one so I'll take any advic