Django Forum
How can I send localstorage data from JavaScript ajax call and print return data from views in Django template
Using Django
KenWhitesell
January 29, 2022, 5:19pm
42
Couple likely reasons
the AJAX is set up to expect JSON, not HTML.
From what you have posted, it appears you’re returning a full html page and not just the fragment needed to update the DOM
← previous page
Related topics
Topic
Replies
Views
Activity
Problem with ajax in Django
Using Django
7
3196
March 3, 2020
Send data with POST-request wont work in Django with AJAX
Using Django
1
3931
August 16, 2021
Having Problems With Ajax/Fetch Method
Using Django
2
600
May 11, 2021
Ajax POST to view not displaying content..
Using Django
3
1901
April 21, 2020
Django Ajax 'GET' return only strings
Using Django
3
1307
April 29, 2020