[Answer]-Default way to manage static files in Django

1👍

Try

<script type="text/javascript" src="{{ STATIC_URL }}js/myjscript.js">

This page is where I got my information from.

In case that site is down, they give an example:

 <img src="{{ STATIC_URL }}images/hi.jpg" alt="Hi!" />

0👍

Perhaps it goes without saying, make sure that STATIC_URL is set to something intelligent in your settings.py. I don’t know what this gets set to by default in a Windows deployment.

Leave a comment