def init_celery(project_name):
os.environ.setdefault('<STR_LIT>', '<STR_LIT>' % project_name)<EOL>app = Celery(project_name)<EOL>app.config_from_object('<STR_LIT>')<EOL>app.autodiscover_tasks(settings.INSTALLED_APPS, related_name='<STR_LIT>')<EOL>return app<EOL>
init celery app without the need of redundant code