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

Solution: Import the 'crontab' module

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

from celery.schedules import crontab

 

For more information:
Python celery crontab