[Answered ]-How to Iterate a list sent from React in Django

1👍

You can use the .getlist(…) method [Django-doc] to access the list of values, so:

>>> print(data.getlist('colors'))
['red', 'green']

Leave a comment