I used DAL(uri, folder, import_models=True) in the task.py function and 
this does the job.

If possible can someone explain if:

1.    This lightweight connect to celery is preferred 
over https://code.google.com/archive/p/web2py-celery/.
2.    Is running the worker using task manager as a windows service the 
best practice?

Regards,
James


On Saturday, November 3, 2018 at 4:46:43 PM UTC+10, James O' Driscoll wrote:
>
> I have implemented the above, the gen_url function is working but the 
> add_user function is not (receiving the error db is not defined from 
> tasks.py.)
>
> Regards,
> James
>

-- 
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.

Reply via email to