Update reviewboard.wsgi migration to preserve custom settings modules.

Review Request #14290 — Created Jan. 12, 2025 and submitted

Information

Review Board
release-7.1.x

Reviewers

rb-site upgrade has logic for migrating reviewboard.wsgi from older
versions of Review Board to a newer format. As part of this, we remove
certain lines, including one that sets DJANGO_SETTINGS_MODULE. This
would remove any line setting this, but if a site had some specific
needs and needed to point to a custom module, that would be removed
during upgrade.

We now only remove the versions that set reviewboard.settings as the
module, preserving anything more custom.

This won't affect nearly any users but us.

Tested this with the RBCommons deployment and verified it didn't
erase our custom settings module.

Summary ID
Update reviewboard.wsgi migration to preserve custom settings modules.
`rb-site upgrade` has logic for migrating `reviewboard.wsgi` from older versions of Review Board to a newer format. As part of this, we remove certain lines, including one that sets `DJANGO_SETTINGS_MODULE`. This would remove *any* line setting this, but if a site had some specific needs and needed to point to a custom module, that would be removed during upgrade. We now only remove the versions that set `reviewboard.settings` as the module, preserving anything more custom. This won't affect nearly any users but us.
ea3c95e0437efc5c6dadcc2adba812c45c0f5447
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (cea9c04)