import os

from .common import Common


class Prod(Common):

    DEBUG = False

    INSTALLED_APPS = Common.INSTALLED_APPS + [
        'raven.contrib.django.raven_compat'
    ]

    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

    RAVEN_CONFIG = {
        'dsn': os.getenv('SENTRY_DSN')
    }

@@ -171,16 +171,217 @@
 %0A    %5D%0A%0A
+    MIDDLEWARE = Common.MIDDLEWARE + %5B%0A        # Placed at the bottom of the middleware stack to catch *any* 404s%0A        'raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware'%0A    %5D%0A%0A
     EMAI

Add Sentry404CatchMiddleware