def django_cmd(sys, settings, *args):
 sys = ('cms' if (sys == 'studio') else sys)
 return cmd('python manage.py', sys, '--settings={}'.format(settings), *args)

def django_cmd ( sys , settings , * args ) : sys = ( 'cms' if ( sys == 'studio' ) else sys ) return cmd ( 'python manage.py' , sys , '--settings={}' . format ( settings ) , * args )
construct a django management command .