We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment variables support in appconfig.ini.
Discussion: https://groups.google.com/forum/m/#!topic/web2py/3x_aLR3a5iE
The text was updated successfully, but these errors were encountered:
Instead of [db] uri=%(MY_DB_URL)s
Use
[db] uri = {MY_DB_URL}
and when you use it:
myconf.get('uri').format(os.environ)
Sorry, something went wrong.
Thank you.
Hi, @mdipierro .
os.environ should have unpacked notation **. Because I got the error and found the solution in python doc: .format(**dict).
os.environ
**
.format(**dict)
No branches or pull requests
Environment variables support in appconfig.ini.
Discussion: https://groups.google.com/forum/m/#!topic/web2py/3x_aLR3a5iE
The text was updated successfully, but these errors were encountered: