I'm trying to set app.config['FLASK_ENV'] = 'development'
but when I run the app it starts runs with default configs (production environment).
My code is as simple as possible:
from flask import Flask
app = Flask(__name__)
app.config['FLASK_ENV'] = 'development'
@app.route('/')
def hello_world():
return 'Hello, World!'
I'm kind of frustrated with Flask at this point as growing from a single file app example to a more structured small app is not covered in documentation. Every single example I found goes from hello world to a full large app, which makes the learning kind of a pain.