1๐
โ
I donโt know anything about Django, so, this a total guess ๐
import json
...
value = json.load(request.POST['user_list'])
๐คuser1636522
1๐
I might be completely wrong here, but it seems to me that you are trying to decode a wrong thing. If Iโm not mistaken, you request.body looks like this:
user_list=["42"]
and if you try to decode this, you have a problem. So why donโt you decode the value from variable value?
user_list = json.loads(value)
๐คhgazibara
- [Answered ]-Changing The Appearance of a Django Form Based on a Condition Before The Form Loads
- [Answered ]-What part of the website from Django/ Python to change to get a pre-written text in search bar?
- [Answered ]-Combining a PyQt Gui app with an Django project
Source:stackexchange.com