Skip to content

Commit 68f4f15

Browse files
committed
use DJANGO_ENV
1 parent 39d57fa commit 68f4f15

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

manage_breast_screening/config/jinja2_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def environment(**options):
4343
"static": static,
4444
"url": reverse,
4545
"inflector": inflector,
46+
"DJANGO_ENV": settings.DJANGO_ENV,
4647
"ENV_CONFIG": os.environ.get("ENV_CONFIG", "unknown"),
4748
}
4849
)

manage_breast_screening/core/jinja2/layout-app.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
{% block pageTitle %}{% if form and form.errors %}Error: {% endif %}{% if page_title %}{{ page_title }} – {% endif %}Manage breast screening – NHS{% endblock %}
1515

1616
{% block header %}
17-
{% if ENV_CONFIG != 'prod' %}
17+
{% if DJANGO_ENV != 'prod' %}
1818
<div class="app-environment nhsuk-tag--grey">
1919
<div class="nhsuk-width-container">
2020
<strong class="nhsuk-tag nhsuk-tag--grey">
21-
{{ ENV_CONFIG }}
21+
{{ DJANGO_ENV }}
2222
</strong>
23-
This is the {{ ENV_CONFIG }} environment.
23+
This is the {{ DJANGO_ENV }} environment.
2424
</div>
2525
</div>
2626
{% endif %}

0 commit comments

Comments
 (0)