python – Celery failing to connect to redis in Flask

I have a flask app with celery configured inside. This is the configuration flow: app.common.globals.py: from flask import current_app as app from celery import Celery celery = Celery() __init__.py from app.common.globals import celery celery = Celery(app.name, broker=app.config[‘CELERY_BROKER_URL’], backend=app.config[‘CELERY_BACKEND_URL’]) celery.conf.update(app.config) def create_app(config_class=Config): app: Flask = Flask(__name__) app.config.from_object(config_class) logging.basicConfig(level=logging.INFO) debug = app.config[‘DEBUG’] if debug: app.logger.setLevel(logging.INFO) with app.app_context(): … Read more

Python flask API Main class test fails with “self.assertEqual”

I have build a flask API in Python. It will when you go to the home page display a page with information. The API works as I want, however my tests fails. All days: http://127.0.0.1:3000/api/v1/resources/today/all Today by ID: http://127.0.0.1:3000/api/v1/resources/today?id=2 Today by month and day: http://127.0.0.1:3000/api/v1/resources/today?month=05&day=06 * Debugger is active! * Debugger PIN: 790-993-637 Ran 1 … Read more

python – How to display a tooltip and how to refresh the downloadfolder with flask and jquery?

This is my model.py, which decribes my sqllite database and all entries. Is the relationship correct? A person is uploading a file and all imputs of the data are saved in a sqllite databank. Which relationship I have to use? 1. one to many, one to one, many to many? Can someone explain me this … Read more