From 42c1f8ebc5272906936d1f128bcecbed3e05a6d4 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:24:27 -0600 Subject: [PATCH 01/33] Update home.html --- src/registrar/templates/home.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html index e86c08c70..730430ffd 100644 --- a/src/registrar/templates/home.html +++ b/src/registrar/templates/home.html @@ -13,7 +13,11 @@

Manage your domains

- + Start a new domain request

From 6e34d231f30d50ea57cd355ae5c910a598238a72 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 3 Nov 2023 09:37:10 -0600 Subject: [PATCH 02/33] Add global setting --- ops/manifests/manifest-za.yaml | 3 +++ src/registrar/config/settings.py | 3 +++ src/registrar/templates/home.html | 8 +++++++- src/registrar/views/index.py | 3 ++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ops/manifests/manifest-za.yaml b/ops/manifests/manifest-za.yaml index 23b6179ec..774ed57ec 100644 --- a/ops/manifests/manifest-za.yaml +++ b/ops/manifests/manifest-za.yaml @@ -23,6 +23,9 @@ applications: DJANGO_LOG_LEVEL: INFO # default public site location GETGOV_PUBLIC_SITE_URL: https://beta.get.gov + # NOTE: This needs to go in manifest-staging + # This is here for PR purposes only! + IS_PRODUCTION: True routes: - route: getgov-za.app.cloud.gov services: diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index 3e5734dcc..99c0add33 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -46,6 +46,7 @@ path = Path(__file__) env_db_url = env.dj_db_url("DATABASE_URL") env_debug = env.bool("DJANGO_DEBUG", default=False) +env_is_production = env.bool("IS_PRODUCTION", default=False) env_log_level = env.str("DJANGO_LOG_LEVEL", "DEBUG") env_base_url = env.str("DJANGO_BASE_URL") env_getgov_public_site_url = env.str("GETGOV_PUBLIC_SITE_URL", "") @@ -72,6 +73,8 @@ BASE_DIR = path.resolve().parent.parent.parent # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env_debug +# Controls production specific feature toggles +IS_PRODUCTION = env_is_production # Applications are modular pieces of code. # They are provided by Django, by third-parties, or by yourself. diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html index 730430ffd..ff487dc06 100644 --- a/src/registrar/templates/home.html +++ b/src/registrar/templates/home.html @@ -13,6 +13,7 @@

Manage your domains

+ {% if is_production %} Start a new domain request + {% else %} + + Start a new domain request + + {% endif %}

@@ -134,7 +140,7 @@ {% endif %}
- {# Note: Reimplement this after MVP.. #} + {# Note: Reimplement this after MVP #}