How can I create prettier fixtures with manage.py dumpdata?
Asked Answered
P

1

25

I'm trying to get my Django fixtures printed in a prettier way.

I've outputting the fixtures:
python manage.py dumpdata >> fixture_app.json

This creates a file with 1000's of characters all on one line. When I try to view the file with my Text Editor( TextMate ), the Editor hangs.

Is there anyway that the fixtures can be exported in a prettier way using multiple lines?

Parrotfish answered 18/3, 2010 at 14:42 Comment(0)
P
62

You can try:

python manage.py dumpdata --indent=2

it will be easier to read.

Phlegethon answered 18/3, 2010 at 14:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.