About Solving Conflicts with Huey and Celery
Both background task managers, Huey and Celery, suggest placing the tasks in tasks.py
files at your Django apps.
When using Huey, some third party libraries might be conflicting when they have functionalities for Celery. To solve that, you would need to disable auto-discovery of tasks functions and instead register your tasks for Huey manually by importing them in the app configs:
$ python manage.py run_huey --disable-autoload
myapp/apps.py
from django.apps import AppConfig
class MyAppConfig(AppConfig):
name = "myapp"
verbose_name = "My App"
def ready(self):
from . import tasks
Tips and Tricks Programming Dev Ops Django 4.2 Django 3.2 Django 2.2 Huey Celery
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.