7👍
✅
Solved it. I guess fullcalendar wanted a list with json objects, but i was returning plain json objects. What I did was
for entry in entries:
id = entry.id
title = entry.title
start = entry.date.strftime("%Y-%m-%dT%H:%M:%S")
allDay = False
json_entry = {'id':id, 'start':start, 'allDay':allDay, 'title': title}
json_list.append(json_entry)
return HttpResponse(json.dumps(json_list), content_type='application/json')
I didn’t json.dumpbed every json_entry but only one time the json_list. And worked like a charm. Thank you all
Source:stackexchange.com