Skip to content

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

@matrixise

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! 😊

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