The app breaks when setting the FLASK_ENV variable and changing the necessary code to accept that variable. It seems like it could be a circular dependency issue.
The desired way to set which config it is using is by setting the FLASK_ENV variable and then running flask run. The environments currently available are development, testing, and production. Right now, DevelopmentConfig is hardcoded in the __init__.py in the app directory.
The app breaks when setting the
FLASK_ENVvariable and changing the necessary code to accept that variable. It seems like it could be a circular dependency issue.The desired way to set which config it is using is by setting the
FLASK_ENVvariable and then runningflask run. The environments currently available are development, testing, and production. Right now, DevelopmentConfig is hardcoded in the__init__.pyin the app directory.