I am migrating a project to Django
and like to use the django-rq
module.
However, I am stuck at what to put here:
import django_rq
queue = django_rq.get_queue('high')
queue.enqueue(func, foo, bar=baz)
How to call func
? Can this be a string like path.file.function
?
Does the function need to reside in the same file?