<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def command(command):
 """ Run custom Django management command """

    with cd(env.remote_path):
        sudo(env.python + ' manage.py %s' % command, user=env.remote_user)