I think I've figured out the issue I was having with the auto reloader- the 
modules I import into the app do in fact reload, it was their dependancies 
that weren't- so if made a change on a module that was being imported only 
by another module, the changed module wasn't reloaded. 

The solution is to import every module, including dependencies, into your 
app directly. So far it's working..

On Saturday, April 28, 2012 2:40:35 PM UTC-4, Yarin wrote:
>
> I've been trying this and it is *not* working.
>
> I put this exact line:
> from gluon.custom_import import track_changes; track_changes(True)
>
> in my 0.py model file, before any other code. But still any changes I make 
> in my modules do not take effect until I restart server- or if they do it 
> is inconsistently- certainly not on every new page request. Basically, no 
> different than before. 
>
>
>
>
> On Saturday, April 28, 2012 10:24:21 AM UTC-4, simon wrote:
>>
>> from gluon.custom_import import track_changes; track_changes(True)
>>
>> On Saturday, 28 April 2012 14:43:42 UTC+1, Yarin wrote:
>>>
>>> For dev purposes, it would be nice to be able to reload modules without 
>>> having to restart the server- or to have a setting that automatically 
>>> reloads on each request- Otherwise it's almost impossible to do active 
>>> module development from within web2py.
>>
>>

Reply via email to