Category "flask"

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

Is it possible to run two functions (one running FastAPI - ASGI, and one running Flask - WSGI), in one Azure function App?

Im trying testing if its possible to run two functions in one Azure function app one running FastAPI and the other one running Flask. I tried to specify a diffe

How do I call a function for any unhandled exception in my Flask app?

I have a Flask app that I am using to create some API endpoints (using flask-restful) for interacting with an app I am developing. I have built a function error

Flask-Login: Redirect to page after login

**The problem was in this code lgin enter image description here You only needed to delete 1 line (<form metod="POST" action="/singup") to make everything wo

Python-Flask, Server generated from swagger file produces 'do some magic!' for all get methods

I have generated Python Flask-Server API from swagger editor: https://editor.swagger.io/ When I run the server locally, I noticed that all my get methods produc

How to send URL of video from one html file to another using flask

Trying to create a simple website consisting of two webpages Few radio buttons to choose which input/output video to display Displays input and output video mai

How to set username and password for basic auth in flask restx swagger?

Im trying to add basic Authorization to my flask rest-x application. By referring to https://github.com/python-restx/flask-restx/issues/271 I have made code cha