diff --git a/apps/core/management/scripts/reminder_email_for_reply.py b/apps/core/management/scripts/reminder_email_for_reply.py index 59f00920..ae2baab2 100644 --- a/apps/core/management/scripts/reminder_email_for_reply.py +++ b/apps/core/management/scripts/reminder_email_for_reply.py @@ -9,7 +9,7 @@ if env("DJANGO_ENV") == "production": django_env = "" - BASE_URL = "https://newara.sparcs.org/post" + BASE_URL = "https://newara-api.sparcs.org/post" else: django_env = "[DEV]" BASE_URL = "https://newara.dev.sparcs.org/post" diff --git a/apps/core/views/viewsets/report.py b/apps/core/views/viewsets/report.py index afff5623..8795925c 100644 --- a/apps/core/views/viewsets/report.py +++ b/apps/core/views/viewsets/report.py @@ -56,7 +56,7 @@ def get_queryset(self): def send_email_for_article_report(request): django_env = "PROD" if env("DJANGO_ENV") == "production" else "DEV" article_link = ( - "newara.sparcs.org" + "newara-api.sparcs.org" if env("DJANGO_ENV") == "production" else "newara.dev.sparcs.org" ) diff --git a/ara/settings/prod/__init__.py b/ara/settings/prod/__init__.py index 249a3011..efe04044 100644 --- a/ara/settings/prod/__init__.py +++ b/ara/settings/prod/__init__.py @@ -6,11 +6,13 @@ ALLOWED_HOSTS = [ "newara.sparcs.org", + "newara-api.sparcs.org", "ara.sparcs.org", ] CSRF_TRUSTED_ORIGINS = [ "https://newara.sparcs.org", + "https://newara-api.sparcs.org", "https://ara.sparcs.org", ]