feat: Add management command to load demo content#74
feat: Add management command to load demo content#74fsbraun merged 3 commits intodjango-cms:mainfrom
Conversation
fsbraun
left a comment
There was a problem hiding this comment.
Hi @mrbazzan ! I will give it a test run in the coming days. A few thoughts:
- Is it possible to rename the folder to "democontent" to be consistent with the command?
- Can the command list the options (i.e. files in the democontent folder) if you do not specify any?
- If only a file name and no path is specified, can the command automatically read from the democontent folder?
- Another option would be to call the new page "help-2" if "help" already existed.
Hi @fsbraun, won't that cluster the page tree? |
Alternatively, to avoid unintended clustering, you can add a |
I have added the |
This pull request address issue #73 .
It adds a management command to load data exported using
djangocms-transfer.It works by running
docker compose --rm web python manage.py democontent demo-content/help.json.I would like to remove the FILE positional argument from the command so it becomes
docker compose --rm web python manage.py democontentbut we would need to finalise the content thatwould be in the remote URI (which we would then use internally).