#27133 closed Cleanup/optimization (fixed)
Explain how to load initial data with a data migration
Reported by: | Vaibhav Tulsyan | Owned by: | Krzysztof Żuraw |
---|---|---|---|
Component: | Documentation | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Django 1.8's documentation states that fixtures are deprecated for loading initial data to models. However, Django 1.10 doesn't state anything about the deprecation.
Can more clarity be given on as to how initial data should ideally be loaded into models?
Links:
1.10: https://docs.djangoproject.com/en/1.10/howto/initial-data/
1.8: https://docs.djangoproject.com/en/1.8/howto/initial-data/
Change History (8)
comment:1 by , 8 years ago
Component: | Migrations → Documentation |
---|---|
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 8 years ago
Summary: | Are fixtures deprecated? → Explain how to load initial data with a data migration |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 8 years ago
Triage Stage: | Ready for checkin → Accepted |
---|
Hi, you shouldn't mark your own patch "Ready for Checkin", rather a separate reviewer should do that.
Note:
See TracTickets
for help on using tickets.
Is the deprecation note and the explanation in the 1.7 release notes unclear?
manage.py loaddata <fixturename>
still works fine but it doesn't happen automatically. #24778 is a ticket about possibly allowing migrations to load fixtures.Maybe you could propose a documentation clarification as I'm not exactly sure what would be helpful to clarify your doubt.