Multiple ChartJS scripts are not working at the same time

When I am using a Single Chart in ChartJS, it works well but whenever I use more than a Chart, only the last chart works, the others don’t longer display. I am not sure of what the problem might …

Vue.js component specific delimiters with Django and Vue-loader

I am creating a Django + Vue.js v3 app, and found it very useful to use vue3-sfc-loader, as I can use Django to render .vue files easily, and get the best of both worlds. This setup works and Django …

Are you required to make an http request when trying to use Chart.js?

I followed a tutorial video that showed how to set up Chart.js with Django, using Jquery and API function calls to a page on my site. However, I don’t need to make these function calls to get the data,…

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 …

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 …

Django/Js: how to post a form without reloading whole page

My application currently flows through 3 pages: User selects question in index page User submits answer in answer page User is presented with result in results page. I want to compress that down to …

JavaScript not found in Django

I am trying to use JavaScript within my Django project. I have made a static folder within my app containing css and js folders, and whilst my css is working my js files are not. Any help would be …

JQuery, how to pass the slug variable

I’d like to know how I can pass the slug variable into JQuery/javascript. I have a data-table with items, on each row there are two buttons, one (1) is using Django to create a product, the other (2) …

Getting the value of select option Django

Im been having a trouble how can I get the the value of my select option, I been using javascript to set the value of select option, below is my code which is returning the province value to number …

Non-ASCII characters are not correctly displayed in PDF when served via HttpResponse and AJAX

I have generated a PDF file which contains Cyrillic characters (non-ASCII) with ReportLab. For this purpose I have used the “Montserrat” font, which support such characters. When I look in …