Allow DJANGO_SETTINGS_MODULE to be customized in reviewboard.wsgi.

Review Request #13503 — Created Jan. 18, 2024 and updated

Information

Review Board
release-6.x

Reviewers

The reviewboard.wsgi module had hard-coded DJANGO_SETTINGS_MODULE to
reviewboard.settings. This is fine for 99.999% of users, but for some
very specialized cases, a separate settings module may need to be used.
In order to make this as easy as possible, any existing
DJANGO_SETTINGS_MODULE will now be respected, rather than being
overridden.

Tested this on an in-development server with a customized settings
environment.

Summary ID
Allow DJANGO_SETTINGS_MODULE to be customized in reviewboard.wsgi.
The `reviewboard.wsgi` module had hard-coded `DJANGO_SETTINGS_MODULE` to `reviewboard.settings`. This is fine for 99.999% of users, but for some very specialized cases, a separate settings module may need to be used. In order to make this as easy as possible, any existing `DJANGO_SETTINGS_MODULE` will now be respected, rather than being overridden.
19120d18289ba1ba81c1e7bf8c1dd64000caddf1
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
Loading...