summaryrefslogtreecommitdiff
path: root/archweb.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'archweb.wsgi')
-rw-r--r--archweb.wsgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/archweb.wsgi b/archweb.wsgi
index 6fac21e9..0d1798ab 100644
--- a/archweb.wsgi
+++ b/archweb.wsgi
@@ -28,4 +28,9 @@ import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
if using_newrelic:
- application = application = newrelic.agent.wsgi_application()(application)
+ _application = application
+ def application(environ, start_response):
+ os.environ["NEW_RELIC_LICENSE_KEY"] = environ.get("NEW_RELIC_LICENSE_KEY", None)
+ return _application(environ, start_response)
+
+ application = newrelic.agent.wsgi_application()(application)