Category "flask"

How to parse a multipart form-data that contains both files and normal fields in webargs?

I need to parse a multipart form-data with attached file using webargs. At this moment I have the next model: RAW_ARGS = { 'file': fields.Field(

Password Validation Not Working For Flask Form

I'm trying to implement a form where I want a message to be shown in advance if passwords don't match. I have added a data required validator but password match

Crash app error while trying to deploy react-flask app on heroku

I'm currently getting this error when I run the heroku logs --tail command. at=error code=H10 desc="App crashed" method=GET path="/" host=digital-engagement-too

I'm Getting Ngrok Error 6022 after doing everything properly

You can refer to my images for details. This is the code I'm running on colab: from google.colab import drive drive.mount('/content/drive') cd /content/drive/M

chrome fails to load SOME scripts & stylesheets with ERR_INVALID_HTTP_RESPONSE (for a flask app on linux (debian))

I have a flask app running on Linux and working correctly under firefox. For chrome, it only works if the cache is disabled!? But i want my website to work corr

Using Tailwind3 in Flask application without manually (re-)generating css

I'm currently trying to set up a flask project using tailwindcss 3.0.23. For templating I'm using jinja. Furthermore yarn is used. During previous projects when

RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret

I am making Flask app. I wrote this code: from flask import Flask, session from flask_caching import Cache app = Flask(__name__) cache = Cache(app, config={'CA

Redirect to previous URL after OAuth login is completed (flask-dance)

I am developing a Flask application that allows the user to login using OAuth (with Github as a provider), and the flask-dance library. For some reason I am not

How do I update Python variables in txt in real time?

I have the code below who does the work, it writes to my txt file but it will take only the last http request. The counter seems not to work, but when I use glo

app.shell_context_processor decorator does not register the function as a shell context function

I created the following function in a microblog.py file in my ~/Programing/Rasa/myflaskapp/app folder. It creates a shell context that adds a database instance

ValueError: set_wakeup_fd only works in main thread on Windows on Python 3.8 with Django 3.0.2 or Flask 2.0.0

When I run my Django Web application with Apache2.4.41 + Python 3.8.1 + Django 3.0.2 + MySQL 8.0.19 on Windows 10 Professional version it throws Value Error at

Extending Apache Superset and adding a link

I have a superset fork I managed to get it up and running using docker compose. Now I'm trying to do one simple thing: add a new link to the existing SQL Lab me

flask_appbuilder - python-ldap library is not installed

I'm trying to use flask_appbuilder to integrate Apache-superset with LDAP. I put the configuration in /venv/lib/python3.6/site-packages/superset/config.py #from

Superset iframe login redirect

I'm trying to understand how one should be able to insert Superset's dashboards and charts inside another application. At the moment I am at this step: I have i

Flask-socketio, send message only to one chat

I am developing flask app with chat feature. When somenone sends message, it saves into db. Now I want to display it on screen with socketio but when someone s

Apache Superset TypeError while starting with OAuth authentication enabled

I'm trying to configure OAuth authentication with GitHub apis, on Superset 1.0.1. Following the docs, I added the following lines in superset_config.py from fla

Share session data between Flask apps in separate Docker containers that are served using a reverse proxy

I have a Docker app running on localhost. There are multiple flask apps each in its own container. One is on the root (localhost) and the others are on subdomai

Options for User Session Management with React and Flask

After days of reading through the source code of Flask and Flask-Login and trying to figure out why my user sessions aren't being visibly accessible outside the

Flask SERVER_NAME setting best pratices

Since my app has background tasks, I use the Flask context. For the context to work, the Flask setting SERVER_NAME should be set. When the SERVER_NAME is set th

Python Flask framework. AssertionError: A setup function was called after the first request was handled

I've been following the flask tutorial to add a database, in their example they're using mysqlite while I'm using MySQL but I figured that shouldn't make a huge