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 preventing or suppressing UserWarning #12
Comments
Is this a suggestion how we should suppress it, or how the code might be modified? We get this warning all over the place and it would be great to eliminate it. |
@chris-erickson this is a suggestion on how to suppress it in your app. We could provide an option like |
We had some discussions in PR #23 about ways to prevent the warning: @merwok |
I know this thread has been dead, but we'd like the suppress mode, and as far as I can tell it is not solved. |
I'm down with reviewing a PR that uses logging instead of warnings like discussed in #23. |
FTR at my company we have written a small lib to abstract various settings systems including dotenv; no warnings! https://github.com/caravancoop/configstore/ |
We use dotenv on our
project/wsgi.py
andproject/celery.py
for local development where we do have a.env
. When we deploy to Heroku our logs get polluted with UserWarnings.Workaround is to do the following:
The text was updated successfully, but these errors were encountered: