Model in sub-directory via app_label?

 ̄綄美尐妖づ 提交于 2019-11-30 06:43:27

See Django ticket #10985: Explain how models can be organised in a directory

It may be that you aren't importing your models into __init__.py?

syncdb will not create tables for models not located in <appname>.models, so import it in there, e.g. from apps.foo.models import SomeModel.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!