dimagi/commcare-hq — pull request #1579 by esoergel (2013-10-22 19:08:12+00:00)
Title: Performance

The main file is `loadtest/fake_data/fake_it.py`. All the configuration is done there.

I'm not totally sure we want this all merged in, that's why I'm leaving it closed. In order to set up the django environment, I created a top-level file that mimics the setup done in manage.py (I have a similar file locally that does additional setup for `./manage.py shell`, importing some modules, and occasionally other tasks that I want done a number of times).

I've thought about making a management command that accepts script files as args, and executes them in the django environment, leaving in the interpreter if called with `-i`. It'd be useful for one-off commands like this, or for repeated setup in `./manage.py shell`