[web2py] Re: Import application from staging to production server

2017-11-20 Thread Anthony
On Sunday, November 19, 2017 at 10:03:12 PM UTC-5, Peter wrote:
>
>
> I don't understand the 'local_import'  in this line
>
> pygal = local_import('pygal')
>>
>>
> Can't find it in the documentation for web2py, pygal or  searching  python 
> local_import... 
>

local_import was deprecated after the web2py custom importer was created. 
It was used as a way to load modules local to the application and allow 
auto-reloading in development. It still works but is no longer necessary or 
recommended.

Anthony

-- 
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.


[web2py] Re: Import application from staging to production server

2017-11-19 Thread Peter

I don't understand the 'local_import'  in this line

pygal = local_import('pygal')
>
>
Can't find it in the documentation for web2py, pygal or  searching  python 
local_import... 


but pygal works for me using just... 

import pygal
>

-- 
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.