praekelt/django-generate — Issue #2: Cache output using JSON dumps
Author: auzigog
Created: 2011-12-21 23:32:14+00:00
State: open

I have the following use case that I'd like to have supported:

* Run `manage.py generate` or `manage.py syncdb`
* Generator runs
* For each app, it saves all of it's output to `APPNAME/fixtures/generator.json` ... This dump could be done the same way `manage.py dumpdata` is done.

The reason I need that is because I'd like to use the generated data in my unit tests. Right now, I use `run_command('generate')` for each test which is really slow. With these automatic json dumps, I could just specify `generator.json` which is much quicker.

Is this something you'd be willing to add?