diff --git a/rcpch_nhs_organisations/settings.py b/rcpch_nhs_organisations/settings.py index 43ccae0..ffd90d0 100644 --- a/rcpch_nhs_organisations/settings.py +++ b/rcpch_nhs_organisations/settings.py @@ -41,6 +41,15 @@ "0.0.0.0", ] +if os.getenv("WEBSITE_SITE_NAME"): + ALLOWED_HOSTS = ["*"] +else: + ALLOWED_HOSTS = [ + "127.0.0.1", + "localhost", + "0.0.0.0", + ] + # Application definition INSTALLED_APPS = [