开发者

Dump data from django Feincms

开发者 https://www.devze.com 2023-01-09 13:30 出处:网络
I\'m using feincms in a django project and I want to开发者_高级运维 use manage.py dumpdata but I get nothing:

I'm using feincms in a django project and I want to开发者_高级运维 use manage.py dumpdata but I get nothing:

python manage.py dumpdata feincms                 
[]


If you want to dump the page data you need to run dumpdata on the page app. The page models live there, not in feincms:

 python manage.py dumpdata page


I don't know FeinCMS, but looking at the GitHub repo it seems that the feincms application only contains abstract models. If you want to dump the data, you'll need to find where the actual concrete models are, and dump that app.


There is also the option to use dumpdata all, but I should warn you: the more complex your application, the more likely it is that the dumpdata will miss something. If all else fails, try doing a dump directly from your database, rather than relying on Django.

0

精彩评论

暂无评论...
验证码 换一张
取 消