I don't think appconfig supports environment variables in .ini files, 
though I think it could be made to if it used SafeConfigParser(os.environ) 
in place of SafeConfigParser(). Maybe open a Github issue with this 
suggestion.

Anthony

On Sunday, July 17, 2016 at 3:35:50 PM UTC-4, LMK wrote:
>
> Hello,
>
> Can I use OS Environment variables in appconfig.ini? If so, how can I 
> apply it?
> I just tried the following snippet and it didn't work.
>
> [db]
> uri=%(MY_DB_URL)s
>
> I got the error below:
> <class 'ConfigParser.InterpolationMissingOptionError'> Bad value 
> substitution: section: [db] option : uri key : my_db_url rawval : .sqlite
>
> Thanks.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to