On Jan 19, 2011, at 2:32 PM, David J. wrote:
> 
> As you said; It worked;
> 
> Thanks for the pointer; I appreciate it;
> 
> And will set to false in production.

I define a PRODUCTION flag in my model, and use it for this purpose as well as 
setting different log levels and cache durations.

> 
> Thanks again.
> 
> 
> 
> On 1/19/11 5:27 PM, Massimo Di Pierro wrote:
>> Yes. In production set the second argument to False
>> 
>> On Jan 19, 4:27 pm, "David J."<[email protected]>  wrote:
>>> Great Thanks I will try;
>>> 
>>> At what cost am I doing this; Does it add tremendous overhead?
>>> 
>>> Thanks
>>> 
>>> On 1/19/11 5:24 PM, ron_m wrote:
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> If you are editing the file in the modules directory then that is the
>>>> problem. A module gets pulled in and kept by the server until restart
>>>> unless you add a parameter to the local_import()
>>>> api = local_import('api', True) where the True says perform a module
>>>> reload on each request.
> 


Reply via email to