def cmd_execution(*args, **kwargs):
    # pylint: disable=unused-variable
    '''
    Main function to executes from cmd. Emulates django-admin.py execution.
    :param kwargs: overrided env-settings
    :rtype: None
    '''
    from django.core.management import execute_from_command_line
    prepare_environment(**kwargs)
    args = list(sys.argv)
    args[0] = os.getenv("VST_CTL_SCRIPT", sys.argv[0])
    execute_from_command_line(args or sys.argv)
def cmd_execution ( * args , ** kwargs ) : from django . core . management import execute_from_command_line prepare_environment ( ** kwargs ) args = list ( sys . argv ) args [ 0 ] = os . getenv ( "VST_CTL_SCRIPT" , sys . argv [ 0 ] ) execute_from_command_line ( args or sys . argv )
Main function to executes from cmd. Emulates django-admin.py execution.
    :param kwargs: overrided env-settings
    :rtype: None