因为项目使用的django==1.11.* 版本,但是由于各种原因被升级为2版本后就会报错,卸载重装django即可.
卸载:
pip3 uninstall django
安装:
pip3 install django==1.11.*