Check out example codes for "TypeError: autodiscover_tasks() takes at least 2 arguments (1 given) celery". It will help you in understanding the concepts better.

Code Example 1

from django.apps import apps
app.autodiscover_tasks(lambda: [n.name for n in apps.get_app_configs()])

Learn ReactJs, React Native from akashmittal.com