Skip to content

Instantly share code, notes, and snippets.

@artieziff
Last active December 17, 2015 21:19
Show Gist options
  • Save artieziff/5673910 to your computer and use it in GitHub Desktop.
Save artieziff/5673910 to your computer and use it in GitHub Desktop.

FIXTURES

JSON Parser

FIXTURE_DIRS = (
   '/path/to/myapp/fixtures/',
)

python manage.py dumpdata --format=json myapp > /path/to/myapp/fixtures/initial_data.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment