File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 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 %}
You can’t perform that action at this time.
0 commit comments