Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
445986d6
Commit
445986d6
authored
Sep 11, 2013
by
fred
Browse files
install statsd middleware if local settings sets it
parent
928088bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/settings.py
View file @
445986d6
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment