title: how to organize JS files in Django?
body: <p>I am currently working with a Django project, I include different libraries JS and I create JS files for manage the other libraries, but I don't know the correct organization of JS files for each html page, for example, I have a "Main.js" and "Milk.js" in base template but I don't want have both files in the same base template, I want separate files for each page..</p>
  
  <p>I tried adding as a normal js file</p>
  
  <pre><code>&lt;script src="{{ STATIC_URL }}js/milk.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But it  show me a error message  asking me several dependencies when inherited from base.html </p>
  
  <p>I hope your help</p>
  
  <p><strong>EDITED:</strong></p>
  
  <p>Cuando he añadido en mis archivos de plantillas, sin mostrarme error en la consola de cromo pero en la consola django mostrarme los archivos JS de carga con 304 error.
  <a href="https://i.stack.imgur.com/dl4b8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dl4b8.png" alt="enter image description here"></a></p>
  
  <p>The libraries are in base.html</p>
  
  <p>it's strange, I can load milk.js when I click from home.html but when I will click in other page for example "cow.html" from "Milk.html" no load js file even when I did the same as "milk.html".</p>