Skip to content

Add management command to generate sample content #81

Description

@mcteo

Hey,

Once everything is up and running, currently we only have a blank wagtail application. Would it be possible to get a sample dump of the actual database?

If size is an issue, you could use some service like Dropbox, Google Drive or Mega to send it.

Activity

  1. matrixise commented on Nov 21, 2025

    @matrixise
    Contributor

    Instead of providing a database dump, we could use FactoryBoy to generate sample data.

    Benefits:

    • No exposure of sensitive production data
    • Version-controlled alongside the code
    • Easy to regenerate and maintain
    • Can also be reused for tests

    Implementation idea:

    1. Add factory-boy to dev dependencies
    2. Create factories for each model (HomePage, SimplePage, Sponsor, Speaker, Session, Meetup, etc.)
    3. Add a management command like generate_sample_data to populate the database

    If someone wants to pick this up and create a branch, that would be really cool!

  2. changed the title [-]Sample data for content[/-] [+]Add management command to generate sample content[/+] on Nov 21, 2025
  3. iShelar commented on Dec 11, 2025

    @iShelar
    Contributor

    @matrixise @ArcaneIRE Is anyone already working on this or is it still unimplemented?
    If it's still open, I’m happy to take it on.

  4. AllynH commented on Dec 11, 2025

    @AllynH

    I don't think anyone is working on this at the moment.
    Please feel free to jump in @iShelar

  5. iShelar commented on Dec 11, 2025

    @iShelar
    Contributor

    Great, thanks @AllynH I’ll take it and open a PR soon.

  6. added a commit that references this issue on Dec 18, 2025
    02e9708
  7. iShelar commented on Dec 18, 2025

    @iShelar
    Contributor

    Hi @AllynH @ArcaneIRE

    I’ve opened a PR that adds a management command to generate sample content using FactoryBoy, as discussed above.

    It includes factories for the core models and a generate_sample_content command to populate the database with realistic data for local development and testing.

    Would appreciate a review when you have time, happy to adjust anything if needed.

  8. added a commit that references this issue on Jan 11, 2026
    c0c0428
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