mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Update comments
This commit is contained in:
parent
33bf1988f1
commit
7d8249923e
1 changed files with 5 additions and 3 deletions
|
@ -53,11 +53,13 @@ def send_templated_email( # noqa
|
||||||
context = {}
|
context = {}
|
||||||
|
|
||||||
env_base_url = settings.BASE_URL
|
env_base_url = settings.BASE_URL
|
||||||
# The regular expresstion is to get both http (localhost) and https (everything else)
|
# The regular expression is to get both http (localhost) and https (everything else)
|
||||||
env_name = re.sub(r"^https?://", "", env_base_url).split(".")[0]
|
env_name = re.sub(r"^https?://", "", env_base_url).split(".")[0]
|
||||||
# To add to subject lines ie [GETGOV-RH]
|
# If NOT in prod, add env to the subject line
|
||||||
|
# IE adds [GETGOV-RH] if we are in the -RH sandbox
|
||||||
prefix = f"[{env_name.upper()}] " if not settings.IS_PRODUCTION else ""
|
prefix = f"[{env_name.upper()}] " if not settings.IS_PRODUCTION else ""
|
||||||
# For email links ie getgov-rh.app.cloud.gov
|
# If NOT in prod, update instances of "manage.get.gov" links to point to
|
||||||
|
# current environment, ie "getgov-rh.app.cloud.gov"
|
||||||
manage_url = env_base_url if not settings.IS_PRODUCTION else "https://manage.get.gov"
|
manage_url = env_base_url if not settings.IS_PRODUCTION else "https://manage.get.gov"
|
||||||
|
|
||||||
context["manage_url"] = manage_url
|
context["manage_url"] = manage_url
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue