配置
<1>静态文件
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'static')
os.path.join(BASE_DIR,'static1')
]
<2>app注册
INSTALLED_APPS = [
#'app01'
'app01.apps.APP01Config
]
<3>DATABASES 数据库
ENGINE mysql
NMAE 数据库名称
HOST IP
PORT 端口
USER 用户名
PASSWORD 密码
<4>中间件
注释掉 csrf的中间件
<5>TEMPALTES
DIRS [os.path.join(BASE_DIR,'templates')]