Django:未知应用程序
我想从 Django 中的应用程序模型中转储数据。
所以我尝试了以下 python manage.py dumpdata app > temp_data.json
(来自此 答案)
其中“app”是我通过python manage.py startapp app
创建的应用程序
它会抛出以下错误:
Error: Unknown application: asset
有人可以帮助我吗弄清楚发生了什么事?
I want to dump my data from the model of my app in Django.
So I tried the following python manage.py dumpdata app > temp_data.json
(from this answer)
where "app" is an app I created via python manage.py startapp app
It throws me the following error :
Error: Unknown application: asset
Can someone help me to figure out what's going on ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该应用程序是否在 INSTALLED_APPS 中的 settings.py 中列出?
Is the app listed in your settings.py in INSTALLED_APPS?