Skip to content

Improve sample data generation with Task command and wagtail-factories #186

Description

@matrixise

Following up on the work done in #169 by @iShelar, we could enhance the sample data generation with the following improvements:

Suggestions

  1. Add a Task command for generating sample data (e.g., task django:generate-sample-data) to make it easier to use and consistent with our other task commands

  2. Use wagtail-factories instead of plain factory-boy, as it provides specialized factories for Wagtail models that handle the page tree structure and Wagtail-specific fields better

Context

PR #169 already added a great foundation with a generate_sample_data management command using factory-boy. These enhancements would make it even more maintainable and easier for new contributors to use.

cc @iShelar - if you'd like to work on this, I would be really happy! 😊

Activity

  1. iShelar commented on Jan 2, 2026

    @iShelar
    Contributor

    Hi @matrixise Thanks for the suggestions.
    Happy to take this on 👍

    I’ll add a task django:generate-sample-data command and switch the factories to wagtail-factories.

    I’ll share a PR once it’s ready.

  2. matrixise commented on Jan 23, 2026

    @matrixise
    ContributorAuthor

    Hi @iShelar! 👋

    Just checking in to see how things are going with this enhancement. No rush at all - just wanted to see if you're still interested in working on this or if you've encountered any questions or blockers.

    If you need any help or if circumstances have changed and you'd prefer to pass this on, just let us know! Either way, we really appreciate your contributions to the project. 😊

  3. iShelar commented on Jan 23, 2026

    @iShelar
    Contributor

    Hi @matrixise, thanks for the follow-up.

    sorry for the delay, the changes were done earlier, but I hadn’t completed testing. I’ve now tested everything and pushed the PR.

    please let me know if you’d like any changes or refinements.

    #192

  4. matrixise commented on Feb 3, 2026

    @matrixise
    ContributorAuthor

    This has been resolved by PR #192 which added the Task command for sample data generation with wagtail-factories.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions