connexion

ModuleNotFoundError when running child package module

ModuleNotFoundError when running child package module Question: proj | | |—flaskr | |—__init__.py | | |—scripts | |—__init__.py | |—build_database.py My flaskr.__init__.py looks like this import os import connexion from flask_cors import CORS def create_app(test_config=None): … When I run build_database.py in the project root folder with the following command python3 -m flaskr.scripts.build_database I get the …

Total answers: 1

Prevent Flask from double logging when running in console

Prevent Flask from double logging when running in console Question: I’m using Python Flask and Connexion to create a REST API. It’s hard to figure out how logging is working with using these two libraries, and I’ve run in to a strange issue with double logging when trying to run/debug locally. app/log.py import logging from …

Total answers: 2