Skip to content

Commit

Permalink
Set the MAILMAN_HOST values
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Apr 23, 2024
1 parent 095b0f8 commit b110af2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project/base_settings/restclients_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,12 @@
RESTCLIENTS_MAILMAN_POOL_SIZE = os.getenv(
'MAILMAN_POOL_SIZE', RESTCLIENTS_DEFAULT_POOL_SIZE)
RESTCLIENTS_MAILMAN_API_TOKEN = os.getenv('MAILMAN_API_TOKEN', '')
RESTCLIENTS_MAILMAN_HOST = os.getenv('MAILMAN_HOST', '')
MAILMAN_COURSEREQUEST_RECIPIENT = os.getenv(
'MAILMAN_REQUEST_RECIPIENT', '')
if os.getenv('MAILMAN_ENV') == 'PROD':
RESTCLIENTS_MAILMAN_HOST = 'https://lists.uw.edu'
else:
RESTCLIENTS_MAILMAN_HOST = 'https://test.lists.uw.edu'

if os.getenv('TRUMBA_SEA_ENV') in RESTCLIENTS_DEFAULT_ENVS:
RESTCLIENTS_TRUMBA_SEA_DAO_CLASS = 'Live'
Expand Down

0 comments on commit b110af2

Please sign in to comment.