I have been importing JS files into my template using:
<script src="{% static 'inventory/js/panel.js' %}" type="text/javascript"></script>
while importin CSS using
<link href="{{ STATIC_URL }}common/css/form.css" rel="stylesheet" type="text/css">
Can you tell me how to import CSS files using the static template tag like in importing JS files. Thanks
It's almost the same as your js:
{% load staticfiles %}
<link href="{% static "css/base.css" %}" rel="stylesheet"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.