oh, ok, yes, a config file, i get it.  nice.  i might use that new feature 
now.  thank you for that.  lucas

On Wednesday, November 4, 2015 at 11:26:40 PM UTC-5, 黄祥 wrote:
>
> oopss, sorry, my bad.
> the recent web2py version is adapted appconfig to store configuration like 
> (db uri, smtp server n login, form styling, auth config like my example, 
> meta, etc), you can see it in models/db.py
> e.g.
> *models/db.py*
> from gluon.contrib.appconfig import AppConfig
> ## once in production, remove reload=True to gain full speed
> myconf = AppConfig(reload = True)
>
> so, the example i gave you before is return an error if you didn't define 
> myconf
>
> best regards,
> stifan
>
>
> On Thursday, November 5, 2015 at 11:19:34 AM UTC+7, lucas wrote:
>>
>> i don't understand the myconf.take function.   can you explain that?  is 
>> it new to web2py?  lucas
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to