Skip to content

Commit

Permalink
temp: Move down the EMAIL_FILE_PATH setting.
Browse files Browse the repository at this point in the history
This setting can be overridden in the YAML or derived from a setting
that can change based  on the YAML so it should be loaded explicitly
using _YAML_TOKENS
  • Loading branch information
feanil committed Jan 16, 2025
1 parent 7ba3e8c commit 3e57716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def get_env_setting(setting):
BROKER_HEARTBEAT_CHECKRATE = 2
STATIC_ROOT_BASE = None
STATIC_URL_BASE = None
EMAIL_FILE_PATH = DATA_DIR / "emails" / "lms"
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_USE_TLS = False
Expand Down Expand Up @@ -201,6 +200,7 @@ def get_env_setting(setting):

DATA_DIR = path(DATA_DIR)
CC_MERCHANT_NAME = _YAML_TOKENS.get('CC_MERCHANT_NAME', PLATFORM_NAME)
EMAIL_FILE_PATH = _YAML_TOKENS.get('EMAIL_FILE_PATH', DATA_DIR / "emails" / "lms")

# TODO: This was for backwards compatibility back when installed django-cookie-samesite (not since 2022).
# The DCS_ version of the setting can be DEPR'd at this point.
Expand Down

0 comments on commit 3e57716

Please sign in to comment.