Hi,
in models/db.py I have:

from gluon.globals import current
current.db = db


In modules/example.py I have:

from gluon.globals import *
db = current.db


but I get this error: AttributeError: 'thread._local' object has no
attribute 'db'


if I print current.db I get the output but why can't I assign it to a
variable?

Reply via email to