创建应用时电脑出问题自动重启,models.py文件没有默认的导入models,没当回事。 后来,迁移时报错source code string cannot contain null bytes。 删除应用,重新创建应用并注册即可。