Commit 445986d6 authored by fred's avatar fred

install statsd middleware if local settings sets it

parent 928088bf
......@@ -196,6 +196,8 @@ LOGGING = {
}
}
STATSD_CLIENT = 'django_statsd.clients.null'
try:
from local_settings import *
except ImportError, e:
......@@ -212,4 +214,8 @@ if DEBUG and DEBUG_TOOLBAR:
'INTERCEPT_REDIRECTS': False,
}
if STATSD_CLIENT != 'django_statsd.clients.null':
MIDDLEWARE_CLASSES = (
'django_statsd.middleware.GraphiteRequestTimingMiddleware',
'django_statsd.middleware.GraphiteMiddleware',
) + MIDDLEWARE_CLASSES
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment