[web2py] Re: Demystifying some web2py magic

2011-07-08 Thread Anthony
local_import should work, but you should now use regular import statements instead. If you want your modules reloaded automatically, do the following: from gluon.custom_import import track_changes track_changes() That will reload your modules, but only when they change (which is an improvemen

[web2py] Re: Demystifying some web2py magic

2011-07-09 Thread Iceberg
Good to know that. One thing though. If track_changes() is that good, how about we always put it in every app's db.py? Any pros and cons? Thanks in advance. Regards, Iceberg On Jul 9, 3:20 am, Anthony wrote: > local_import should work, but you should now use regular import statements > instead

[web2py] Re: Demystifying some web2py magic

2011-07-09 Thread pbreit
I have a 0.py file that is versioned for production and development (mainly to use postgres on prod and sqlite in dev). I put track_changes() in my dev file.

Re: [web2py] Re: Demystifying some web2py magic

2011-07-08 Thread Jim Steil
Fantastic, that is exactly what I was looking for! -Jim On 7/8/2011 2:20 PM, Anthony wrote: local_import should work, but you should now use regular import statements instead. If you want your modules reloaded automatically, do the following: from gluon.custom_import import track_changes