What do I do? When you click the heart image, if it is liked, it should be a red image. I've got a "Django server" configuration setup with the "Start JavaScript debugger automatically when debugging" checked. To learn more, see our tips on writing great answers. Just like CSS, you can create the separate directory like ‘js’, ‘img’ to save JavaScript, Images in the static directory. Regex using negative lookahead is not working properly; Change URL and content without refreshing django; Top Questions How do I modify the URL without reloading the page? How do you get your site to look better? I already did a few recommendations on the internet without success. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. javascript; django; xmlhttprequest; csrf; My call from JS to my django views is not working at all and I am not sure why. Thanks for contributing an answer to Stack Overflow! Is it safe for a cat to be with a Covid patient? Javascript completions in Next, inside the javascript block, we are pulling JQuery from google CDN you can download it locally as well. Slow write speeds when writing onto USB flash drives. What do you mean by the tonic chord feels as 'home'? More info... what kind of element? The concept is simple: JavaScript Code on the client – Side/ browser makes a request when an event occurs on the web page. When it is not liked, it is the white heart image. If so, how do I even incorporate into the JS? Show more Show less. my html for the page that doesn't work looks like: 2021-02-15 23:40 soysushi imported from Stackoverflow. How is having processes kept as files in `/proc` not a performance issue? Javascript completions in