Merge and use IS_PRODUCTION context processor everywhere

This commit is contained in:
Neil Martinsen-Burrell 2023-11-08 12:14:17 -06:00
parent e29fbd0c2f
commit 11e7abea52
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
2 changed files with 1 additions and 3 deletions

View file

@ -13,7 +13,7 @@
<h1>Manage your domains</h2> <h1>Manage your domains</h2>
<p class="margin-top-4"> <p class="margin-top-4">
{% if is_production %} {% if IS_PRODUCTION %}
<a href="javascript:void(0)" <a href="javascript:void(0)"
class="usa-button usa-tooltip disabled-link" class="usa-button usa-tooltip disabled-link"
data-position="right" data-position="right"

View file

@ -2,7 +2,6 @@ from django.db.models import F
from django.shortcuts import render from django.shortcuts import render
from registrar.models import DomainApplication from registrar.models import DomainApplication
from django.conf import settings
def index(request): def index(request):
@ -23,5 +22,4 @@ def index(request):
state=F("domain__state"), state=F("domain__state"),
) )
context["domains"] = domains context["domains"] = domains
context["is_production"] = settings.IS_PRODUCTION
return render(request, "home.html", context) return render(request, "home.html", context)