解决django.db.utils.DataError: (1406, "Data too long for column 'gender' at row 1")
在pycharm中TOOL—>runmanage.pytask运行createsuperuser,按照提示输入完用户名,邮箱,密码后提示出现了出错原因分析:在user表中gender的max_length为5但是female长度为6因此修改一下gender的max_length即可然后重新创建表TOOL—>TASKmakemigrations—>migratecreatsuperuser即可