rfk/django-supervisor — pull request #10 by j4mie (2011-12-12 21:32:06+00:00)
Title: More flexible project directory support

Hi,

This pull request adds/improves a few features. Hopefully, you'll like them all. If not, let me know and I'll split the commits into separate PRs.

* Support for Django 1.4-style project layouts, where the project module is a subdirectory of the main project. This works by simply looking for a `manage.py` one level up from where it looks currently.
* Some projects don't use `manage.py` at all - they just use `django-admin.py` for everything. In this case, guessing the project layout won't work. I added a `--projdir` flag to the management command to explicitly set the project dir.
* I also added a `--dump` flag, which simple prints the merged config file and exits. This is really, really useful for debugging.

Cheers!