* 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 unboard a new django developer in a company,
since he/she would be familiar with it
* Less teams would copy the production-DB into the development-DB.
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?
--
Ticket URL: <https://code.djangoproject.com/ticket/33467>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> If Django would provide a small framework how to create demo-system, this
> would helpfull:
>
> * 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 unboard a new django developer in a company,
> since he/she would be familiar with it
>
> * Less teams would copy the production-DB into the development-DB.
>
> 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?
New description:
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?
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33467#comment:1>
* type: Uncategorized => New feature
--
Ticket URL: <https://code.djangoproject.com/ticket/33467#comment:2>
--
Ticket URL: <https://code.djangoproject.com/ticket/33467#comment:3>
* status: new => closed
* resolution: => wontfix
* component: Uncategorized => Core (Other)
Comment:
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/33467#comment:4>