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.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27978#comment:1>
* status: new => assigned
* owner: nobody => Pavel Kulikov
--
Ticket URL: <https://code.djangoproject.com/ticket/27978#comment:2>
Comment (by Pavel Kulikov):
[https://github.com/django/django/pull/8255 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27978#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27978#comment:4>
* 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>