-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow debugger to be controlled from application configuration #1641
Comments
I'm surprised noone has replied to this. I was really confused about this due to the comments in the source code at https://github.com/mitsuhiko/flask/blob/master/flask/cli.py#L399-L400
That doesn't seem to be the case. The app is configured with DEBUG to True but it doesn't get picked up by the run command. I ended up writing my cli entry point like this.
|
The workaround above did not work for me. In the This is what worked for me
|
I think the behavior of However, we definetly should provide a way to set |
I just want to respond as a user in a story 🦄 that just did a hello world from the docs. I expected that using |
@dalai4git the str(int(info.load_app().config['DEBUG'])) |
We do not plan to support this. Use |
I submitted a patch for this but learned that it was incomplete with further testing. #1640
Basically, it would be nice to allow
DEBUG
on the application to control the activation of the debugger and reloader when running the CLI likeapp.run
does.The text was updated successfully, but these errors were encountered: