Hi again I am having a similar problem again. I havent compiled the app - i have learnt from that mistake, thanks.
I am now trying to import some of my custom functions from other python files in the same app. After i got an __init.py__ file in place i was able to see and use my imported functions. However, now when i make a change to the imported function, the new code is ignored. I step through line by line in Visual Studio Code and can see it 'process' my new code but it is running the old line. I can 'fix' the problem 1. by restarting the server - but it is only fixed until i make another change which is then ignored. 2. by removing 'from common_functions import DetermineMediaRepresentation' - it just uses the web2py magic to find the function 'common_functions.py' lives in the 'models' folder, not the 'modules' folder. Can anyone tell me what i am doing wrong? PS: The reason for the change to explicitly importing was that i wanted to just right-click the function in VSC and choose 'Go to Definition'. If i dont explicitly import then VSC doesnt know where my functions are and I have to go find them by hand. On Saturday, 7 March 2020 02:01:35 UTC+10, Val K wrote: > > oh yeah, it is definitely due to you press compile in appadmin, it is > intended for production. Dont compile app while you develop. I use modules > without any issues with tracking as i mentoined above -- 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/aaf77894-c9d1-409c-a8a2-3b2e8ef9a1c3%40googlegroups.com.