>> Because of the magic Django does with settings, there can only ever >> be one instance per Python process... Unless I'm missing something.
>That would be somewhat of a problem, because you couldn't install two >Django apps in the same process without them being aware of each other, >so in effect they won't be encapsulated. CherryPy has the same problem, >with the handler being mostly fixed. In Django's case, it seems like if >you could just pass some identifier into WSGIHandler then you'd be able >to specify which app you want to run. Actually I think a better way might just be to change django so that it doesn't pull the DJANGO_SETTINGS_MODULE from the environment, but use a django.settings_module from the WSGI environment - that can be handled distinctly for every application. Currently, Django pulls it from os.environ, so WSGI overrides won't kick in. bye, Georg