STATICFILES_DIRS = (
    os.path.join(BASE_DIR, ‘static‘),
)
{% load staticfiles %}
background url(‘images/a.jpg‘) 或 background=‘images/a.jpg‘
{% static "images/a.jpg" %}
Django中CSS加载background url(‘‘)问题
原文:https://www.cnblogs.com/xiaofengchu/p/9389804.html