diff --git a/gracedb/core/context_processors.py b/gracedb/core/context_processors.py
index b1379cc8aa4cee10481575986764a81b995a26ea..afac66599cee9ff079c03526234c7554337ee67f 100644
--- a/gracedb/core/context_processors.py
+++ b/gracedb/core/context_processors.py
@@ -1,7 +1,6 @@
-
 from django.conf import settings
 
 def LigoDebugContext(request):
-    if settings.DEBUG and settings.DEBUG != "PRODUCTION":
-        return { 'config_name' : settings.CONFIG_NAME }
+    if settings.DEBUG and hasattr(settings, 'CONFIG_NAME'):
+        return { 'config_name': settings.CONFIG_NAME }
     return {}