[Django] #29165: Initial data howto doesn't explain how to use migrations

20 views
Skip to first unread message

Django

unread,
Feb 27, 2018, 6:04:10 AM2/27/18
to django-...@googlegroups.com
#29165: Initial data howto doesn't explain how to use migrations
-------------------------------------+-------------------------------------
Reporter: Michel | Owner: nobody
Samia |
Type: Bug | Status: new
Component: | Version: master
Documentation | Keywords: initial data
Severity: Normal | migrations
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29165>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 27, 2018, 9:54:08 AM2/27/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------
Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: initial data | Triage Stage: Accepted
migrations |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => assigned
* easy: 1 => 0
* owner: nobody => Tim Graham
* type: Bug => Cleanup/optimization
* stage: Unreviewed => Accepted


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:1>

Django

unread,
Mar 4, 2018, 5:05:15 PM3/4/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------

Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: initial data | Triage Stage: Accepted
migrations |
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ed Morley):

* cc: Ed Morley (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:2>

Django

unread,
Mar 5, 2018, 10:57:07 AM3/5/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------

Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: initial data | Triage Stage: Accepted
migrations |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/9753 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:3>

Django

unread,
Mar 8, 2018, 10:37:01 AM3/8/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------

Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: initial data | Triage Stage: Ready for
migrations | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:4>

Django

unread,
Mar 8, 2018, 10:58:36 AM3/8/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------

Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed

Keywords: initial data | Triage Stage: Ready for
migrations | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"fd9398816e14554b52362f1152349da832fab4b1" fd93988]:
{{{
#!CommitTicketReference repository=""
revision="fd9398816e14554b52362f1152349da832fab4b1"
Fixed #29165 -- Clarified how to load initial data with migrations.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:5>

Django

unread,
Mar 8, 2018, 10:59:02 AM3/8/18
to django-...@googlegroups.com
#29165: Initial data howto could better explain how to use migrations
-------------------------------------+-------------------------------------

Reporter: Michel Samia | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: initial data | Triage Stage: Ready for
migrations | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"8d3bd724ab996078a570dd736b85a8ad5b317f97" 8d3bd724]:
{{{
#!CommitTicketReference repository=""
revision="8d3bd724ab996078a570dd736b85a8ad5b317f97"
[2.0.x] Fixed #29165 -- Clarified how to load initial data with
migrations.

Backport of fd9398816e14554b52362f1152349da832fab4b1 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29165#comment:6>

Reply all
Reply to author
Forward
0 new messages