Update the WSGI script for Django 1.6 and 1.11 compatibility.
Review Request #10527 — Created April 11, 2019 and updated
Our WSGI script is very old, and attempts to import and construct a
WSGIHandlerinstance directly. Even in Django 1.6, this was not the
recommended approach. Instead, we now call
which has the important addition on Django 1.7+ of calling
django.setup()to initialize Django before serving requests. This is
rb-sitewill perform an upgrade on this file, converting the old logic
to the new logic automatically without altering anything else in the
Performed an upgrade on a legacy file. Verified that it was upgraded
Verified that the new logic returns a valid
Django 1.6 and 1.11.