This is an old post. But I had this problem too. 'track_changes' works fine in a brand new project. But i can't get it to work in my now quite large project.
Eventually I found something that works. My module is called 'public.py' and it lives where it should - in the 'web2py/applications/myapp/modules' folder. I include the following at the top of the db.py file in the 'models' folder. import importlib import sys importlib.reload(sys.modules['public']) I am not sure what the proper approach is to develop using modules. I have a lot of code in the models folder currently. However everything i have read says 'dont put too much stuff in the models folder' and 'dont reload modules'. I know i shouldn't reload modules when in production. But it would be unpleasant to develop code in modules if i had to restart the server everything each time i made a change. If anyone has any thoughts on the right way to do this i would be love to hear them. Cheers Andrew On Friday, 11 May 2012 at 02:25:34 UTC+10 howesc wrote: > yes, sorry, i meant in development time. > > in one project i moved models to modules and shaved about 33% off of the > GAE production request time. another project is in test this week and i > will hopefully have numbers soon. note that when you don't need auth > (not all of my requests use auth) not setting it up saves about 200ms on > GAE. > > cfh > > On 5/10/12 9:21 , Alex BENFICA wrote: > > Hi... > > > > When you say "now that i'm doing more and more in modules it does slow > > things down"... are you talking about development time, right? is not > > about the performace of you web2py app... is that? > > > > The performance increase when using modules instead put code on models > > worth all this extra work? > > Do you have any measure about this performance gain? > > > > > > On Thu, May 10, 2012 at 1:17 PM, howesc<how...@umich.edu> wrote: > >> i use the persistent local datastore on GAE SDK as well. i have not > tried > >> to turn on dynamic module re-loading on GAE, but i have a shell script > that > >> starts/stops GAE and i just restart that. it's not as fast as > >> auto-reloading but it has been ok for me (though now that i'm doing > more and > >> more in modules it does slow things down) > >> > >> > >> On Wednesday, May 9, 2012 2:27:33 PM UTC-7, Alex Benfica wrote: > >>> > >>> Oi Ricardo, > >>> > >>> Thanks. > >>> > >>> I add the option to use sql lite and databse keeps data when I restart > >>> app engine SDK. > >>> And about the module reloading... did you have any problems with it? > >>> > >>> On Wed, May 9, 2012 at 5:54 PM, Ricardo Pedroso<rmdpe...@gmail.com> > >>> wrote: > >>>> On Wed, May 9, 2012 at 8:35 PM, Alex Benfica<alexb...@gmail.com> > >>>> wrote: > >>>>> > >>>>> I'm having a seriuos problem having to stop and start Google App > Engine > >>>>> SDK > >>>>> when I want edit modules, otherwise, they are not reloaded. > >>>>> The problem is that, doing this, I lose the entire database content > on > >>>>> GAE > >>>>> SDK... > >>>> > >>>> You can persist the data on GAE SDK > >>>> > >>>> > >>>> > https://developers.google.com/appengine/docs/python/tools/devserver#Using_the_Datastore > >>>> > >>>> Ricardo > >>> > >>> > >>> > >>> -- > >>> -- > >>> > >>> Atenciosamente, > >>> Alex BENFICA > >>> > >>> -- > >>> "O que n�o se mede n�o se gerencia." > > > > > > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/59dd33cf-e67c-4617-a463-32613f48c8e8n%40googlegroups.com.