Às 09:38 de 06/03/20, Andrew Rogers escreveu:
Thanks for your advice Val. I will try your suggestion... and google search a little to see what it does

I dont think i had two servers running but i will look out for that in the 
future.

It seems that the Module i added was the main problem. I moved all the code into the Controller and didnt have any more issues. I dont know what best practice is but from a few things i read it seemed to discourage using Modules.

Code in the modules folder are compiled automatically when the python file is first invoked. So, after you change any file in modules, you should remove the correspondent .pyc file.

In controllers and models, however the files are not compiled by default, so, most likely, there are no compiled files in those folders and the code is interpreted at every request.


On Friday, 6 March 2020 07:05:27 UTC+10, Val K wrote:

    To track module changes try this


    from gluon.custom_import import track_changes; track_changes(True)

    Also, your problem looks like you have more then one web2py server running


Regards,

Carlos Correia
=========================
MEMÓRIA PERSISTENTE
GSM:  917 157 146
e-mail: ge...@memoriapersistente.pt
URL: http://www.memoriapersistente.pt
XMPP (Jabber): car...@memoriapersistente.pt
GnuPG: wwwkeys.eu.pgp.net

--
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/2972294b-9cfb-cc26-356d-ea9ec97c99fa%40memoriapersistente.pt.

Reply via email to