一、异常2:RuntimeError The environment variable ‘PROJECT_SETTING’ is not set and as such configuration could not be loaded. 原因:未配置环境变量,代码中需要加载有操作系统管理的环境变量,操作系统中环境变量中没有 解决方法: 1、编辑配置文件 2、编辑环境变量的值