Tried what you suggested, but got this error.
Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from py4web import *
>>> from apps.todo.models import db
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/tecno2/py4web/apps/myapp/__init__.py", line 15, in <module>
@action.uses(session) # action needs a session object (read/write cookies)
File "/home/tecno2/py4web/py4web/core.py", line 494, in __call__
app_name = action.app_name
AttributeError: type object 'action' has no attribute 'app_name'
>>>