Django文档: https://docs.djangoproject.com/en/1.11/howto/static-files/
urlpatterns = [
# ... the rest of your URLconf goes here ...
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
例子:
{% load static %}
<img src="{% static "my_app/example.jpg" %}" alt="My image"/>