diff --git a/opentech/settings/production.py b/opentech/settings/production.py
index 410aff444a003c4c5869931637dabb8cf3635864..131e636384ec8591fa81ad050380abb9a9629fd7 100644
--- a/opentech/settings/production.py
+++ b/opentech/settings/production.py
@@ -11,12 +11,6 @@ from .base import *  # noqa
 # Disable debug mode
 DEBUG = False
 
-# Raven (sentry) configuration. See local settings for DSN
-
-INSTALLED_APPS += (
-    'raven.contrib.django.raven_compat',
-)
-
 
 # Cache everything for 10 minutes
 # This only applies to pages that do not have a more specific cache-control
@@ -29,6 +23,16 @@ CACHE_CONTROL_MAX_AGE = 600
 
 env = os.environ.copy()
 
+# Raven (sentry) configuration. See local settings for DSN
+
+if 'SENTRY_DSN' in env:
+    INSTALLED_APPS += (
+        'raven.contrib.django.raven_compat',
+    )
+
+    SENTRY_DSN = env['SENTRY_DSN']
+
+
 # On Torchbox servers, many environment variables are prefixed with "CFG_"
 for key, value in os.environ.items():
     if key.startswith('CFG_'):
diff --git a/requirements.txt b/requirements.txt
index 7c0bdc343e2fcdfa710e513beed3cd7b5ea4f354..c70c8301fb265f72ceedb8649edfec45da1ac284 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -29,4 +29,4 @@ dj-database-url==0.4.1
 whitenoise==2.0.4
 uwsgi==2.0.15
 ConcurrentLogHandler==0.9.1
-raven==6.1.0
+raven==6.9.0