If I received t开发者_StackOverflow社区hrough a post method the following string
'Soccer,Tennis,BaseBall'
How can I, using django, separate the fields into an array in an efficient way?
You wouldn't use Django, you'd use Python.
>>> 'Soccer,Tennis,BaseBall'.split(',')
['Soccer', 'Tennis', 'BaseBall']
'Soccer,Tennis,BaseBall'.split(',')
精彩评论