AttributeError: '_io.BufferedWriter' object has no attribute 'encoding'
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
我的后台页面是可以打开的:
后台代码配置如下:
用户创建失败,于是我自己在数据库手动添加了一个用户
还是不能登录,但是请求200,报错如下
创建超级管理员还是上面的错误:AttributeError: '_io.BufferedWriter' object has no attribute 'encoding'
请求大神帮忙,感谢!!!