How to Solve NameError: name 'get_task_logger' is not defined -- celery

Solution: Import the 'get_task_logger' module

To Solve the error, add the following line to the top of your code.

from celery.utils.log import get_task_logger

 

For more information:
Python celery get_task_logger