django-cms-quickstart icon indicating copy to clipboard operation
django-cms-quickstart copied to clipboard

Implement a custom management commands to import data from CMS models

Open vinitkumar opened this issue 7 months ago • 3 comments

We need to implement two management command, one to dumpdata from the cms models that has all the data required to setup the page including the plugin data and placeholder data. Now, also need a custom command something like python manage.py loadloremipsum that would get the data into the newly setup CMS so that it doesn't appear empty out of the box and expose what the CMS is capable of.

vinitkumar avatar Jul 23 '25 17:07 vinitkumar

@mrbazzan Please have a look at this issue. For some reason, I am unable to assign you this issue.

vinitkumar avatar Jul 23 '25 17:07 vinitkumar

I think it would be nice to be able to manage a set of standardized demo content within this repo. Can we deploy it (or maybe even multiple versions) in a repo folder that is not normally installed into the Docker image?

The load command then can access the GitHub repo to retrieve the data.

Maybe create a folder called demo-content at the root level and exclude it from being pushed into the docker image. It can be accessed through, say, https://raw.githubusercontent.com/django-cms/django-cms-quickstart/refs/heads/main/demo-content/landing-page.json.

fsbraun avatar Jul 30 '25 07:07 fsbraun

Thanks. This is helpful.

[Should this issue be] closed, given the merged PR[?]

wesleyboar avatar Jan 16 '26 23:01 wesleyboar