Skip to content

Draft: demo fixture data#594

Draft
Stormheg wants to merge 6 commits intomainfrom
feature/fixtures
Draft

Draft: demo fixture data#594
Stormheg wants to merge 6 commits intomainfrom
feature/fixtures

Conversation

@Stormheg
Copy link
Member

Demo content

Very minimal proof of concept, an almost empty homepage, menu and a single blog post copied from Wagtail.org

Steps to test

(assuming you are using docker-compose)

  1. Start with a fresh database
  2. Migrate: manage.py migrate
  3. Create cache table manage.py createcachetable
  4. Use make load_initial_data to load the fixtures and images from the fixtures I added
  5. Run mange.py runserver and login at http://localhost:8000/admin/ with username admin and password changeme
  6. You should now have a Wagtail.org instance with some data in it!

Dumping fixtures

(assuming you are using docker-compose)

When you've made some edits, run make dumpfixtures, this should update the JSON file. Image files and other uploaded media aren't yet copied to the fixtures directory.

Heavily inspired by the way bakerydemo loads its data.

@Stormheg Stormheg linked an issue Feb 26, 2026 that may be closed by this pull request
@aryanyk
Copy link

aryanyk commented Mar 6, 2026

Hi @Stormheg
I saw the draft PR for demo fixture data.

I'd be happy to help extend the dataset with additional
sample content (e.g., tags, categories, or multiple
authors) if that would be useful.

@Stormheg
Copy link
Member Author

Stormheg commented Mar 7, 2026

That would be great! Feel free to copy content and images from wagtail.org. We are most interested in the navigation menu and the blog.

I've made some additional fixes to the load and dump fixture that I haven't pushed yet. I could probably push those to my branch later

You can try and see how far you can get?

@Stormheg
Copy link
Member Author

Stormheg commented Mar 8, 2026

@aryanyk I have pushed my reworked commits. I believe the code I wrote to save uploaded documents and images is a bit buggy, so it could be possible that images are broken for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create sample data to develop with

2 participants