Category "flask"

raise exc.NoSuchModuleError( sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgresql

I created a sample flask application, I want to connect PostgreSQL database to my project. I installed flask_sqlalchemy. here is my Code from flask import Flask

Serving local webcam video stream to web with "multipart mixed replace" HTTP response

This article shows how to stream a local webcam to the browser with Python + Flask + OpenCV + multipart HTTP response. After launching the following self-contai

Flask API filtering posts by author

I've create CRUD API in Flask, but I have a problem with the filtering function returning books by a specific author. from flask import Flask, request, jsonify,

Heroku H10 error when deploying Flask application with Psycopg2

Runs locally, but not when deployed to Heroku (see error message). I tried adding a runtime.txt file with the Python version, and tried most of suggestions to s

Locking thread and creating new cursors not resolving sqlite3 "recursive use of cursors not allowed"

I am trying to make a simple flask web server that presents two graphs of data using matplotlib from a DHT22 sensor stored in a sqlite3 database. The code is ba

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