Disable the collection of metrics when not deployed

We were using up a lot of events in our dev environments.

(imported from commit 8413ecfa835cce0a231bdf437f37ad8cf12a9133)
This commit is contained in:
Zev Benjamin
2013-06-14 17:52:11 -04:00
parent 80702ccaa0
commit dd939ed7fe
3 changed files with 9 additions and 2 deletions

View File

@@ -11,4 +11,5 @@ def add_settings(request):
def add_metrics(request):
return {
'mixpanel_token': settings.MIXPANEL_TOKEN,
'enable_metrics': simplejson.dumps(settings.DEPLOYED),
}