[Django]-How to properly load js script into html/djangoTemplate?

2👍

try this: <script src="{% static 'yourAppName/path/to/app.js' %}">

If it keeps telling you that it can’t find that specific file, then you probably haven’t correctly configured your settings.py to know where your static directory should be.

Leave a comment