<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def init_celery(project_name):
 """ init celery app without the need of redundant code """

    os.environ.setdefault('DJANGO_SETTINGS_MODULE', '%s.settings' % project_name)
    app = Celery(project_name)
    app.config_from_object('django.conf:settings')
    app.autodiscover_tasks(settings.INSTALLED_APPS, related_name='tasks')
    return app