Opened 11 years ago
Closed 11 years ago
#22480 closed Uncategorized (invalid)
"django-admin.py dumpdata" - unable to serialize
Reported by: | yn | Owned by: | nobody |
---|---|---|---|
Component: | Core (Serialization) | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I encountered an error in
django-admin.py dumpdata
https://docs.djangoproject.com/en/1.6/ref/django-admin/#django-admin-dumpdata
This command should print the serialized dump to stdout. And it's work fine
I need to redirect stdout to file
But
django-admin.py dumpdata > data.json
generates the error "Command error - unable to serialize"
Django 1.6.2
Python 3.3
Windows 7 home 64b
Attachments (2)
Change History (7)
by , 11 years ago
Attachment: | CWindowssystem32cmd.exe_2014-04-21_14-27-23.png added |
---|
follow-up: 2 comment:1 by , 11 years ago
by , 11 years ago
Attachment: | manage_dump_traceback.png added |
---|
manage.py dumpdata --traceback > data.json
comment:2 by , 11 years ago
Replying to timshaffer:
Do you get any extra output if you run it with traceback?
manage.py dumpdata --traceback > data.json
See the new attach.
follow-up: 4 comment:3 by , 11 years ago
I have been unable to reproduce this error, but could you try python manage.py ...
?
comment:4 by , 11 years ago
Replying to timo:
I have been unable to reproduce this error, but could you try
python manage.py ...
?
Yes, it working now
python manage.py dumpdata > data.json
comment:5 by , 11 years ago
Component: | Uncategorized → Core (Serialization) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Do you get any extra output if you run it with traceback?