Solution Along with FLASK_ENV = 'development', add FLASK_DEBUG = 1 in the flask env file. Or run this command - export FLASK_DEBUG=1