Category "flask"

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

WTF-Forms EqualTo validator not giving error message

I have a registration form with a password and confirm password field. When the form is submitted and the passwords do not match, it is not returning any error

render html strings in flask templates [duplicate]

I'm building a web page to show articles. In my database, I have to attributes, one of which is used to put Markdown code and the other to s

I want the dropdown choice to be the one registered in my database with Flask

I have some code, but it gives me an error. It's done with Flask, and here is the error: https://hastebin.com/emifitopof.sql File forms.py class PostForm(FlaskF

CommandError: Can't locate revision identified by '...' when migrating using Flask-Migrate

I started using Flask-Migrate today and installed it on a test project. However i am getting following error: alembic.util.exc.CommandError: Can't locate r

Can't import MigrateCommand from flask_migrate

I made a manage.py file for database migration in a Flask application and I get an error when trying to import MigrateCommand. I'm using PyCharm and I'm sure th

How to print spaces from inside a variable in jinja2

I am trying to print a variable number of spaces stored in a variable in jinja2, but jinja is escaping the contents of the variable. So when I store &nbsp i

How To Deploy an Update to Python Flask Application with Gunicorn and Nginx on Ubuntu 18.04

Python Flask / Gunicorn / Nginx newbie here. I followed this tutorial describing how to serve Flask Applications with Gunicorn and Nginx on Ubuntu 18.04. Everyt

Flask-restx request parser returns 400 Bad Request

I'm using flask-restx in my flask application but each time I use the swagger ui to make a request it returns this 400: http://127.0.0.1:5000/api/user/register/