Chr_M <chr.mntn@...> writes:
> > > No, I am not using Ajax callbacks. I have done some more research, but I could be a Python thing as well.http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a- python-modulehttp://stackoverflow.com/questions/2918898/prevent-python-from- caching-the-imported-modulesThe common most reliable answer seems to be to restart the python interpreter, thus to restart web2py webserver.Or is there a way web2py's webserver can automatically reload when code changes in modules (it seems Django does it that way)? Or has web2py solved this in another way?Regards, ChrisOn Monday, December 10, 2012 10:03:43 AM UTC+1, Lazarof wrote: > Hi! Are you using Ajax callback funcion?понедельник, 10 декабря 2012 г., 1:34:09 UTC+4 пользователь Chr_M написал:Sometimes the changes in the code of a module (in the modules directory) are not working when requesting the url that uses these modules. in the modules directory I have a subdirectory with python files that form a package (__init__.py file in this subdirectory). I have added from gluon.custom_import import track_changestrack_changes()in the first model that gets called, but still sometimes code changes are not working. I noticed that the py-files in the modules dir get compiled to pyc-files. But at one point (it looks to be randomly) these are not compiled anymore when I change code in the py-files. But even when I remove these pyc-files, the code changes are still not working when requesting the url. Am I missing something? Is there a cache I can clear or something? I now have to restart web2py to make the code changes work...Thanks.Regards, Chris > > > > > i had the same problem that code changes were not seen by the web2py, maybe the problem is like my problem which is there are more than one web2py instance are working at the same time, better check out for the processes list. -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

