[Django] #27978: Support for reading data from stdin in loaddata

17 views
Skip to first unread message

Django

unread,
Mar 22, 2017, 9:14:22 AM3/22/17
to django-...@googlegroups.com
#27978: Support for reading data from stdin in loaddata
-------------------------------------+-------------------------------------
Reporter: Aymeric | Owner: nobody
Augustin |
Type: New | Status: new
feature |
Component: Core | Version: master
(Management commands) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
This behavior should be built-in: https://github.com/squareweave/django-
loaddata-stdin

It's much easier to work with streams than files on modern platforms, for
example:

`heroku run -r prod django-admin dumpdata --format=json | heroku run -r
staging django-admin loaddata --format=json -`

FWIW the workaround looks like `heroku run -r staging bash`, then `cat >
data.json`, paste with the OS clipboard (which, thankfully, can copy a few
MB of data), and then `django-admin loaddata data.json` -- ugh...

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

Django

unread,
Mar 22, 2017, 9:32:27 AM3/22/17
to django-...@googlegroups.com
#27978: Allow loaddata to read data from stdin
-------------------------------------+-------------------------------------
Reporter: Aymeric Augustin | Owner: nobody
Type: New feature | Status: new
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

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

* stage: Unreviewed => Accepted


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

Django

unread,
Mar 22, 2017, 1:32:35 PM3/22/17
to django-...@googlegroups.com
#27978: Allow loaddata to read data from stdin
-------------------------------------+-------------------------------------
Reporter: Aymeric Augustin | Owner: Pavel
| Kulikov
Type: New feature | Status: assigned

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Pavel Kulikov):

* status: new => assigned
* owner: nobody => Pavel Kulikov


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

Django

unread,
Mar 26, 2017, 3:33:00 PM3/26/17
to django-...@googlegroups.com
#27978: Allow loaddata to read data from stdin
-------------------------------------+-------------------------------------
Reporter: Aymeric Augustin | Owner: Pavel
| Kulikov
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

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

Comment (by Pavel Kulikov):

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

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

Django

unread,
Mar 26, 2017, 3:34:06 PM3/26/17
to django-...@googlegroups.com
#27978: Allow loaddata to read data from stdin
-------------------------------------+-------------------------------------
Reporter: Aymeric Augustin | Owner: Pavel
| Kulikov
Type: New feature | Status: assigned
Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Pavel Kulikov):

* has_patch: 0 => 1


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

Django

unread,
May 26, 2017, 8:15:20 PM5/26/17
to django-...@googlegroups.com
#27978: Allow loaddata to read data from stdin
-------------------------------------+-------------------------------------
Reporter: Aymeric Augustin | Owner: Pavel
| Kulikov
Type: New feature | Status: closed

Component: Core (Management | Version: master
commands) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"af1fa5e7da21c57a4037e67f93493af4e78d454a" af1fa5e7]:
{{{
#!CommitTicketReference repository=""
revision="af1fa5e7da21c57a4037e67f93493af4e78d454a"
Fixed #27978 -- Allowed loaddata to read data from stdin.

Thanks Squareweave for the django-loaddata-stdin project from which this
is adapted.
}}}

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

Reply all
Reply to author
Forward
0 new messages