summaryrefslogtreecommitdiff
path: root/archweb.wsgi
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2019-03-17 19:54:05 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2019-03-17 19:54:05 -0400
commitf75e2271cd595d2aa2af5e1b1de28b4c01bcad28 (patch)
treee467b17fff2fd9a02a3714c26234562f5d91e2a1 /archweb.wsgi
parent56660109fc7b3325768db6f9d05e1ee7374a3b86 (diff)
parenta9dcbbd1aa69e06e8373a7f0836fbc8a12d54b86 (diff)
Merge tag 'release_2017-05-17' into archweb-generic
Diffstat (limited to 'archweb.wsgi')
-rw-r--r--archweb.wsgi21
1 files changed, 0 insertions, 21 deletions
diff --git a/archweb.wsgi b/archweb.wsgi
index 20ec463e..a5253131 100644
--- a/archweb.wsgi
+++ b/archweb.wsgi
@@ -14,26 +14,5 @@ os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
os.chdir(base_path)
-using_newrelic = False
-try:
- key_path = os.path.join(base_path, "newrelic.key")
- if os.path.exists(key_path):
- with open(key_path) as keyfile:
- key = keyfile.read().strip()
- os.environ["NEW_RELIC_LICENSE_KEY"] = key
-
- import newrelic.agent
- from newrelic.api.exceptions import ConfigurationError
- try:
- newrelic.agent.initialize(os.path.join(base_path, "newrelic.ini"))
- using_newrelic = True
- except ConfigurationError:
- pass
-except ImportError:
- pass
-
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
-
-if using_newrelic:
- application = newrelic.agent.wsgi_application()(application)