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
Configuration Support #17
Comments
It would be useful to be able to have "config" as a threadlocal or global object. For example:
And elsewhere in your code:
|
I was thinking of just attaching that to app. Then you can do app.config or if you don't know the current application you can do current_app.config. |
As long as I can use current_app to avoid circular dependencies that should work fine. |
Another thing to consider is the ability to override the default configuration easily in unit tests, where you want to use a test database and other safe settings. |
There is now a branch for this: http://github.com/mitsuhiko/flask/tree/config-support Outstanding issues:
|
Implemented :) |
Apps should have some kind of config dict attached. That would make it a lot cleaner to deal with configuration values.
The text was updated successfully, but these errors were encountered: