[Answer]-Display ajax data in django view

1👍

You’re posting to your preview view, then when that returns successfully you are trying to open a separate window by calling the same URL again. But the second call doesn’t have any POST data, so naturally it won’t work. Your success function should do something with the data it’s already being passed, rather than trying to open a new URL.

Leave a comment