If using Apache/mod_wsgi and its daemon mode, just swap out the WSGI
script file with another which has a really basic raw WSGI application
which provides appropriate error response with explanation. The act of
replacing the WSGI script will cause the mod_wsgi daemon processes to
reload, thus unloading your Django application, and replacing it with
the simple WSGI application.
Be aware that you should not return normal 200 status responses, you
should use an appropriate error response, perhaps:
HTTP_SERVICE_UNAVAILABLE = 503
to ensure that nothing caches your outage page.
Graham