Dump data from django Feincms
Asked Answered
S

3

5

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                 
[]
Slambang answered 1/8, 2010 at 3:9 Comment(0)
C
8

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
Coagulant answered 23/9, 2010 at 10:35 Comment(0)
V
0

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.

Veinstone answered 1/8, 2010 at 12:12 Comment(1)
actually, the Page model is not abstract, and lives in "feincms.module.page.models.Page" that looks like the still is feicms.Slambang
S
0

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.

Steepen answered 15/12, 2010 at 15:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.