如果运行python manage.py createsuperuser出现一大堆错误代码
解决方案:
1.检查settings.py中的DATABASE配置确定正确性
2.执行python manage.py migrate
亲测有效。