When you run celery -A tasks worker --loglevel=info, your celery app should be exposed in the module tasks. It shouldn't be wrapped in a function or an if statements that.
If you make_celery in another file, you should import the celery app in to your the file you are passing to celery.