I've added this code to my Flask application:
But it does not seem to enable debug mode. When I run my flask app, PyCharm seems to default to use environment variables which I'm not sure how to change. Is there a way to stop using environment variables and return to the programmatic method? Failing that how do I change the environment variables?