1π
β
Can you tell me whether the mistake is when you render the first time the view, or is an ajax call?, I think you are doing ajax call, then can you debug the django process, and write here what are the datas that you recover of your database, please?.
In addition, can you put the json serializer that you are using please?
If you try the next code, you can see the problem is not unicode:
import json
json.dumps([unicode(i) for i in range(10)])
result: '["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]'
try send the above data, and tell us the result please. Thanks!
π€JuanB
0π
Use β|safeβ
something like this in your template.
{{ variable_name | safe }}
π€Taxellool
- Offering choices that depend on other fields in Django Admin
- Django static import on template
- Missing something with autentication in django?
- Issue with running Django server
- Django, Querysets. How to perform search on 400mb sql query set faster?
Source:stackexchange.com