Opened 2 years ago

Closed 2 years ago

#33467 closed New feature (wontfix)

Small Framework to create Demo-Systems

Reported by: Thomas Güttler Owned by: nobody
Component: Core (Other) Version: 4.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Thomas Güttler)

If Django would provide a small framework how to create demo-system, this would helpful:

  • Developers would waste less time creating fundamental data-structures, just to be able to use a view in the development system
  • It would it make easier to onboard a new django developer in a team, since he/she would be familiar with it
  • Less teams would copy the production-DB into the development-DB. This is a bad habit since it usually violates data-protection regulations.

There are several ways how to get there here is one idea:

The AppConfig class can provide a method called create_demo_data(). This implements
the creation process. It is up to the developer to implement it (if he wants to).

There is a new management command which calls all AppConfigs.

Of course there are some details not solved yet. For example: how to handle the case where
App2 depends on data of App1.

Would you accept a pull-request?

Change History (4)

comment:1 by Thomas Güttler, 2 years ago

Description: modified (diff)

comment:2 by Thomas Güttler, 2 years ago

Type: UncategorizedNew feature

comment:3 by Thomas Güttler, 2 years ago

Summary: Small Framework to create a Demo-SystemSmall Framework to create Demo-Systems

comment:4 by Mariusz Felisiak, 2 years ago

Component: UncategorizedCore (Other)
Resolution: wontfix
Status: newclosed

Thanks for the ticket, I'm now sure how you would like to builtin an universal way to create a demo. Please first start a discussion on the DevelopersMailingList, where you'll reach a wider audience and see what other think. I doubt there would be consensus to add that complexity. Personally, I think that a third-party package is the best way to proceed. Hope it makes sense.

Closing as "wontfix" with a request to start a discussion.

Note: See TracTickets for help on using tickets.
Back to Top