1.若使用python manage.py createsuperuser时报错,很有可能是数据库迁移时出错了;重新输入以下内容: python manage.py makemigrations python manage.py migrate