Category "flask"

pause and resume http file upload/download

I have 2 servers, one local server(office) another remote server in cloud (storage), users in the office can't access the remote server. I want to create some u

Angular - auth0 AuthHttpInterceptor not attaching token to requests

To cut a long story short, I am having problems with auth0's AuthHttpInterceptor class not actually attaching tokens to any outgoing requests. I have been follo

Flask restful api with mysql backend crashes when more than 2 apis are called from angular app

We are working on a test project and really do not know Flask and Flask restful much. Our python is not good as well, the problem is, we have developed an API s

How to incorporate a flask_wtf form into a Bootstrap form?

I am trying to create a simple sign-in/out website, but I don't know how to use Bootstrap with Flask effectively. I have only just started using Bootstrap, so I

How to point Flask static to Digitalocean spaces

I am using url_for in my html pages to access and display static images. I wish to connect flask static to digitalocean spaces instead of AWS S3 as explained in

How can I filter MongoDB Database from Pymongo in Flask App?

I am trying to query my database passing as a parameter a string. Some days ago it worked, but suddenly it stopped working. Is there something wrong I am missin

How can I filter MongoDB Database from Pymongo in Flask App?

I am trying to query my database passing as a parameter a string. Some days ago it worked, but suddenly it stopped working. Is there something wrong I am missin

CORS problem on production (FLASK on docker, VUE static, NGINX)

All is working Ok on develop (tipical) I have flask app (API) docker, postgres docker and VUE app (FRONT). Deployed on production (AWS instance with nginx). Fla

Storing Objects assigned to user while using Flask [duplicate]

I come here to ask you a question about the way session can handle Objects in Flask. I have a Flask application and I want all my users to hav

How to send table dropdown select fields to flask

I have a table composed of three columns, a text and two other select fields. When the user chooses an option from the dropdown select, I would like to send the

Flask not running properly [duplicate]

I am trying to get started on flask but have some teething issues... In the terminal I am using the commands: > set FLASK_APP=hello.py >

How to send form data to MongoDB using Flask

I'm a student and trying to make a simple image uploading API using form data and MongoDB. But I'm having hard time solving errors. I think it's the server side

Launching gunicorn instances a docker image, using docker run

In my dockerfile, for a Flask app, I have a set of commands that work as planned. The last line of my dockerfile is currently: ENTRYPOINT [ "/bin/bash", "-c" ]

How to run a flask application?

I want to know the correct way to start a flask application. The docs show two different commands: $ flask -a sample run and $ python3.4 sample.py produ

Kubernetes Istio Gateway & VirtualService Config Flask Example

I try to get some hands on experience with K8s & istio. I am using minikube and I try to deploy a dummy flask web-app. However, for some reason I do not man

How to run google people service build in server to make token.pickle

I try to make micro sever to connect google people API. I do in my local host 'MACOS', everything oke. But after i deploy to server 'CENTOS', server can not ren

Flask check_password always return false

I create login for user in home page if user click on login then the login page is display there user enter email id and password if email id and password is co

How to prevent a flask form from being cleared if an input is wrong

I have looked for many solutions for this issue but I have not found one specific to Flask, so I have a flask form and I use WTForms to validate the form. The f

Python + Flask + Discord: How to send a message through discord through a flask endpoint?

I'm trying to send a message with discord, activated through a Flask endpoint I get the following error message when I call http://127.0.0.1:5000/send RuntimeEr

Run periodic task defined from the view | Flask & Celery

I'm trying to run a simple periodic task every 10 seconds using flask and celery with the following code in my controllers.py: @celery.task() def print_hello(wo