#28983: Documentation on providing initial data with migrations is unhelpful
-------------------------------------+-------------------------------------
Reporter: Rob Atkinson | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* type: Uncategorized => Cleanup/optimization
* easy: 1 => 0
Comment:
There's nothing particularly special about using migrations to load
initial data. Migrations are executed for all test runs as part of
creating the test database. I wouldn't use migrations to load test-
specific data. For Django's test suite, we use the ORM and
`TestCase.setUpTestData()` for that. Do you want to write up some
clarifications based on those suggestions?
--
Ticket URL: <https://code.djangoproject.com/ticket/28983#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.63dbfb3d0c10f26c5227c3b65db05135%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.