How can i use multiprocessing in django to run different tasks simultaneously?

I have an application that process some videos and to improve performance I want to do this simultaneously for each video. When I use multiprocessing, I get the following error: “django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet.”. Threading isn’t an option because of the GIL. Is there something that i can do to run different tasks simultaneously in my Django application?

Welcome @yanmendonca !

Generally speaking, the currently-accepted practice is to use Celery (or something similar) to run background tasks.

See django-tasks - bringing background workers in to Django core for another approach that is in the works.