How to completely dump the data for Django-CMS

后端 未结 4 1452
独厮守ぢ
独厮守ぢ 2021-01-30 23:49

I have an instance of Django-CMS already running in a production environment. I would like to dump all the data related to the CMS (PAGES and PLUGINS) so that I may load it bac

4条回答
  •  攒了一身酷
    2021-01-31 00:02

    Django's built in dump and restore commands work well for migrating the contents of the CMS.

    To dump the contents of the CMS, you need to include both the cms app as well as each of the plugin types you are using in the dumpdata command, so something like:

    manage.py dumpdata cms text picture link file [other plugin types] > cms_export.json
    

    to dump your content (you just need the app name, not the full path, like cms.plugins.text).

提交回复
热议问题