Django测试开发-25- 所有app应用整理至apps下,新建应用执行生成数据库时报错:Invalid model reference 'apps.develop.Event'. String model references must be of the form 'app_label.ModelName'.

 

 

报错内容:

 "must be of the form 'app_label.ModelName'." % model
ValueError: Invalid model reference 'apps.develop.Event'. String model references must be of the form 'app_label.ModelName'.

解决方案:

apps.develop.Event   改为:  develop.Event   即可
posted @ 2020-03-27 17:12  旅行没有终点  阅读(375)  评论(0编辑  收藏  举报