benoitc/gunicorn — pull request #272 by tilgovi (2011-10-08 09:14:54+00:00)
Title: refactor djangoapp loading

This change fixes #266 by waiting until the app is loaded to invoke
`setproctitle()`. Other improvements to `djangoapp`
* Remove some redundant code by factoring out `wsgi_handler` property
* Replace `__import__` and `django.utils.importlib` with recursive
calls to `imp` module to verify loading
* Separate find_settings from import_settings to be more clear about
when sys.path is modified to make reload easier.