Chartjs-Rendering charts using local Chart.js in overriding Django templates

0👍

Thanks to @Ene P’s comment, I solved the problem by re-reading Django’s static reference. Following the reference, create a static folder under my app; put the downloaded Chart.js; use the `{% static ‘/app_name/script.js’ %}; Bingo!
https://docs.djangoproject.com/en/3.2/howto/static-files/

Leave a comment