<link rel="stylesheet" href="/static/bootstrap-3.3.7-dist/css/bootstrap.css"> {% load static %} <link rel="stylesheet" href="{% get_static_prefix %}bootstrap-3.3.7-dist/css/bootstrap.css"> {% load static %} <link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.css' %}">
配置静态文件link的三种方法
2.数据库迁移命令
python3 manage.py makemigrations
python3 manage.py migrate
3.新建app命令
python3 manage.py startapp app名称
python3 manage.py startapp blog