title: 404 Error for django serving static files. How to setup django to serve static files?
body: <p>Settings.py file in Project directory : </p>
  
  <p>I already added following : </p>
  
  <pre><code>STATICFILES_DIRS = [
      os.path.join(BASE_DIR, "static"),
  ]
  </code></pre>
  
  <p>-> in template</p>
  
  <pre><code>&lt;script src="{% static "validateurl/home.js" %}"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have a directory <strong>static</strong> under project directory. home.js is under <strong>validateurl</strong> directory under <strong>static</strong>.</p>
  
  <p>Referring JS File using following in template html file : </p>
  
  
  
  <p><a href="https://i.stack.imgur.com/kPdwf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kPdwf.png" alt="enter image description here"></a></p>
  
  <p>Please advise what am I missing here. </p>
  
  <p>Errors below : </p>
  
  <p><a href="https://i.stack.imgur.com/RvNxJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RvNxJ.png" alt="enter image description here"></a></p>