jgorset/django-kronos — pull request #2 by j4mie (2012-01-27 11:11:58+00:00)
Title: Fix manage.py location guessing

This pull request addresses issue #1

* I have added a `--fake` option to `manage.py installtasks`. This simple prints the lines that would be added to the crontab. This makes debugging much easier.
* I used `os.getcwd()` to more accurately guess the location of `manage.py`.
* I also added a check for a global `cron.py` in the parent of `PROJECT_MODULE`, in case `PROJECT_MODULE` ends up being a settings package.

The current test suite still passes, but I haven't added any tests for these changes. I wasn't sure how best to approach testing them without creating a bunch of test projects with different layouts, which seemed like overkill. If you'd prefer everything to be full tested, I'd appreciate any thoughts on the best approach to take.

Cheers

Jamie