1👍
You should put your static files of an app in a static
named folder inside the app folder. Not in your templates
folder but alongside. You also don’t need STATIC_ROOT
to be set – if you are on the development server; you only need that in production.
So create a static
folder in your app folder, inside create js
, css
, img
folders and put in them the proper files.
In your template:
{% load staticfiles %} # at the very top
<script src="{% static "js/jquery.timepicker.min.js" %}"></script>
👤doru
Source:stackexchange.com