I suggest this, because I think it's a rather poor idea; my biggest
problem with it is that it will break under Apache. So suddenly
django-admin and the handlers do different things, which is
bound to cause surprises...
That's exactly the kind of feedback this kind of idea deserves =).
Note that the way perforce solves this is that the environment variables trump the looked-up files. So this mechanism would only kick in for people who had not configured a DJANGO_SETTINGS_MODULE environment variable.
So I don't think it would break under apache -- Apache would still require the same environment variable to be set. But maybe I'm missing something?
--david