1.setting.pySTATIC_URL = ‘/static/‘STATICFILES_DIRS = ( os.path.join(BASE_DIR, "static"),)2.html{% load static %}<link rel="stylesheet" type="text/css" href="{% static ‘css/x.css‘%}"/>
django加载静态文件
原文:https://www.cnblogs.com/mznsndy/p/11436746.html