Skip to content

Tag: django

Why does javascript create spurious images using ajax?

Firstly I must apologise for the length of the code in this question. It is based on Django and javascript and I have stripped out as much as I can to give a working example The challenge is to create a composite image using a random number of rooks – all black rooks on the top row and all red

Separating Django REST back from Front end

This is a bit of a different question. I’ve tried researching the information for a few hours now and I can’t seem to find what I am looking for. I have a Django REST backend that I set up. Its very simple REST API that has one Model Model.py I’m able to post to via the REST api interface se…

Ajax post requests 403 error only for some users?

I’ve been testing my site by having friends try it, and some friends get the 403 Forbidden error on any function using ajax. I’m confused why only some of them get the error, especially when everyone used the same browser. Does anyone know why? I’m using Django as a framework and I think I&#…

Django – AJAX Fetch sends request for each input letter

This might be far from how it should be done, I’m learning on the go and it’s my first time trying something like this. Problem: Even with the setTimeout function, server sends response for each letter I have written, though I would expect it to wait for user to stop typing and just fetch the fini…