I have it (current.db=db) in my model. But still got the error.i even tried to create another table but with the same error.
On Fri, 12 Oct 2018, 18:31 Leonel Câmara <[email protected]> wrote: > For current.db to work you need to put it there in a model file or > someplace else. You need do do something like current.db = db in your > models. > > current.globalenv is always populated by web2py when it builds the > environment where a controller or scheduler task is processed with the > things you defined in your models. > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

