How to send javascript list from template to request.POST (django framework)

I have the javascript below that gets all checked box and it works well.

<script>
                function addlist() {
                    var array = []
                    var checkboxes = document.querySelectorAll('input[type=checkbox]:checked')

                    for (var i = 0; i < checkboxes.length; i++) {
                        array.push(checkboxes[i].value);
                    }
                    document.write(array);
                }
</script>

I want to know how to submit the list array to views.py and get it via request.POST[”]

Any suggestions?