0

I'm trying to edit my code on my django but somethings really weird is happening and i don't know what's happening. making me crazy af.

my chart code is inside static folder under js/chart1.js

then on my django template, i have <script type="text/javascript" src="{% static 'js/chart1.js' %}"></script>

now i edited the chart1.js but it wont reflect.

  1. i tried deleting staticfolder,
  2. restarting server,
  3. even deleting chart1.js under js directory

just as long as <script type="text/javascript" src="{% static 'js/chart1.js' %}"></script> is there, the chart still there even tho chart1.js dont exists anymore. i dont know where django getting its data for my graph.

can someone tell me whats happening? thanks!

Belhadjer Samir
  • 1,461
  • 7
  • 15
Junely
  • 21
  • 6
  • Did you do this 'STATIC_URL = '/static/'' in settings.py and this '{% load static %}' in your template? – Frederick Feb 05 '21 at 22:27
  • yes, btw fixed it. I cleared the browser cache. Thanks for answering – Junely Feb 05 '21 at 22:32
  • Does this answer your question? [How to force the browser to reload cached CSS and JavaScript files](https://stackoverflow.com/questions/118884/how-to-force-the-browser-to-reload-cached-css-and-javascript-files) – Ivan Starostin Mar 06 '21 at 19:51

1 Answers1

0

Btw, I found a fixed. I cleared browser's cache.

Junely
  • 21
  • 6