Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Changed 4 years ago by Tim Graham

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 Changed 4 years ago by Ed Morley

Cc: Ed Morley added

comment:3 Changed 4 years ago by Tim Graham

Has patch: set

comment:4 Changed 4 years ago by Carlton Gibson

Triage Stage: AcceptedReady for checkin

comment:5 Changed 4 years ago by GitHub <noreply@…>

Resolution: fixed
Status: assignedclosed

In fd93988:

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

comment:6 Changed 4 years ago by Tim Graham <timograham@…>

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