From 2c20db83facc8d8882af17fbccef18be307aa8da Mon Sep 17 00:00:00 2001 From: Neil Martinsen-Burrell Date: Thu, 9 Nov 2023 13:40:24 -0600 Subject: [PATCH] Fix context processor by including it in settings.py --- src/docker-compose.yml | 2 ++ src/registrar/config/settings.py | 1 + src/registrar/templates/base.html | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/docker-compose.yml b/src/docker-compose.yml index 786f4c24b..b8e65839e 100644 --- a/src/docker-compose.yml +++ b/src/docker-compose.yml @@ -27,6 +27,8 @@ services: - DJANGO_DEBUG=True # Tell Django where it is being hosted - DJANGO_BASE_URL=http://localhost:8080 + # Is this a production environment + - IS_PRODUCTION # Public site URL link - GETGOV_PUBLIC_SITE_URL=https://beta.get.gov # Set a username for accessing the registry diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index 87ad0ff96..c6f2190ed 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -210,6 +210,7 @@ TEMPLATES = [ "registrar.context_processors.language_code", "registrar.context_processors.canonical_path", "registrar.context_processors.is_demo_site", + "registrar.context_processors.is_production", ], }, }, diff --git a/src/registrar/templates/base.html b/src/registrar/templates/base.html index 26bf133c2..af432e5e9 100644 --- a/src/registrar/templates/base.html +++ b/src/registrar/templates/base.html @@ -4,9 +4,9 @@ {% if IS_PRODUCTION %} - + - {% endif %}