django学习总结

页面样式的配置 1、在setting中配置路径 STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') 2、在html模板中引用 {% load static %} <link rel="stylesheet" type="text/css" href="\static\main.css"> <img src="
相关文章
相关标签/搜索