showmigrations python manage.py sqlmigrate sessions 0001 python manage.py dbshell # 进入shell模式 创建用户 django-shell
使用序列化器 在使用之前我们需要进入Django-shell。