#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.a3545d3d831f831fb3220a166299649b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to