Category "flask"

How do I load only this page when my progressive web app goes offline

I'm stuck on a problem: I wanted to make some tests trying to turn my simple flask web application into a progressive web application even tho I found poor info

Best way to check if database already exists with flask-sqlalchemy, otherwise create

I have a database app, and want to create the tables and database on the fly when starting the app for the first time. If the app is restarted, it should only c

"ValueError: Invalid async_mode specified" when bundling a Flask app using cx_Freeze

I am building an API that uses Waitress, Flask, and Flask_SocketIO in Windows. Everything works fine from the command line, but when I try to bundle my API into

No module named 'application' Error while deploying simple web app to Elastic Beanstalk

I am deploying a web app to elastic beanstalk using this tutorial and the same 'application.py' file they have: https://docs.aws.amazon.com/elasticbeanstalk/lat

How to add payload request for FB chatbot in python?

I have created a chatbot in python, flask, pymessenger, witai. I have added some button but I don't know how to reply back once the user press/select the option

Flask: How to access current user when creating forms?

I have found this question asked in various ways slightly different but the answers seemed old or not quite what I was looking for. I have a functioning Flask a

CORS request did not succeed - react

I make this API request , using axios in ReactJS axios.post(`${API_URL}/valida_proximo`, { id: images.map(image => image.id) }, getAxiosConfig()) //

Could not import "D": FLASK_APP

from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' I am new to Flask. I wrote this basic code and sa

Flask server not starting for SocketIO

I am trying to make a chat app using SocketIO and following this video: https://www.youtube.com/watch?v=RdSrkkrj3l4 and the corresponding GitHub code: https://g

How to run gunicorn inside python not as a command line?

I have a flask application. I run it in production with this command: python -m gunicorn -w 1 -b 0.0.0.0:5000 "path.to.wsgi:return_app()" Instead, I want to ru

Error occurs when I try to create a new column with passwords in database [duplicate]

from flask import Flask, redirect, url_for, render_template, request from flask_sqlalchemy import SQLAlchemy from datetime import datetime imp

How to setup environment variables for `flask run` on Windows?

I just started learning flask and I am stuck at setting up the Flask environment variables. I don't know how to setup the environment variables. Whenever I use

Axios POST request fails with error status code 500: Internal Server error

I'm trying to send a POST request locally with a username and password in the body through Axios. I'm deploying a Flask app on http://127.0.0.1:5000/login, wh

Python, Pandas ; ValueError('window must be an integer',)

I seem to be having this issue with Pandas code inside a Bokeh callback. Here's part of the output before the error. My dataframe seems normal and I'm not sure

How to handle file upload validations using Flask-Marshmallow?

I'm working with Flask-Marshmallow for validating request and response schemas in Flask app. I was able to do simple validations for request.form and request.ar

sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string

I'm learning flask web microframework and after initialization of my database I run flask db init I run flask db migrate, to migrate my models classes to the da

Frozen-Flask, url_for() in Jinja2 and string concatenation during build

When running Flask normally, everything described below works absolutely fine. When running a build in Frozen-Flask however, I run into the following issue: In

SQLAlchemy error: "TypeError: Additional arguments should be named <dialectname>_<argument>, got 'nullable'"

Problem I get an error using Flask when following a tutorial on using Flash. Since I am a basic Python programmer I don't understand why or what is wrong with i

update pyserial data in real time with flask [duplicate]

im trying to see data in real time, i have to close the python program to refresh the data. It refreshes only when i close the python file and

Is uWSGI's reload-on-rss per worker/process?

Is uWSGI's reload-on-rss value per worker/process? The documentation only states: reload if rss memory is higher than specified megabytes For example, if