问题:css样式不能控制html样式(针对开发环境,不针对生产环境) 现象: django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 6: '/static/css/main.css'. Did you forget to register or load this tag? 操作步骤: 1.首先查看setting.py文件INSTALLED_APPS中是否有 'django.contrib.static