Upgrade htdocs/reviewboard.wsgi when performing a rb-site upgrade.
Review Request #11482 — Created Feb. 23, 2021 and submitted
rb-site upgradenow checks whether the
makes use of an older WSGI loader from either Django 1.6 or 1.11. If so,
it's upgraded to use the new
reviewboard.wsgimodule, stripping out
some of the old environment settings in the process, and adding the
REVIEWBOARD_SITEDIRsetting. This will help keep things maintainable,
and avoid issues later as requirements or configuration needs change.
Unit tests pass.
Manually tested upgrading sites from a 3.0 and a 4.0 beta 2 install and
seeing the new WSGI files in both cases. Verified the new files worked.