Following up on the work done in #169 by @iShelar, we could enhance the sample data generation with the following improvements:
Suggestions
-
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
-
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! 😊