Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#29165 closed Cleanup/optimization (fixed)

Initial data howto could better explain how to use migrations

Reported by: Michel Samia Owned by: Tim Graham
Component: Documentation Version: dev
Severity: Normal Keywords: initial data migrations
Cc: Ed Morley 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

This bug describes issues of this documentation page: https://docs.djangoproject.com/en/2.0/howto/initial-data/

The same issues exist in master branch as of today.

According to many sources (e.g. https://www.caktusgroup.com/blog/2015/11/10/initial-data-django/ ), fixtures are deprecated way for managing initial data. It is not mentioned there. Also it doesn't describe how to use migrations for that purpose. Link to https://docs.djangoproject.com/en/1.11/topics/migrations/#data-migrations would be extremely useful.

Change History (6)

comment:1 by Tim Graham, 7 years ago

Easy pickings: unset
Owner: changed from nobody to Tim Graham
Status: newassigned
Summary: Initial data howto doesn't explain how to use migrationsInitial data howto could better explain how to use migrations
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

This also came up in #28983 (closed as worksforme). I have a couple ideas in mind about how to improve that page and will propose a patch.

comment:2 by Ed Morley, 7 years ago

Cc: Ed Morley added

comment:3 by Tim Graham, 7 years ago

Has patch: set

comment:4 by Carlton Gibson, 7 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by GitHub <noreply@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In fd93988:

Fixed #29165 -- Clarified how to load initial data with migrations.

comment:6 by Tim Graham <timograham@…>, 7 years ago

In 8d3bd724:

[2.0.x] Fixed #29165 -- Clarified how to load initial data with migrations.

Backport of fd9398816e14554b52362f1152349da832fab4b1 from master

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