Skip to content
Snippets Groups Projects
Commit 64e38163 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

updating profiling middleware

parent e7a197a9
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import re
import hotshot, hotshot.stats
import tempfile
import StringIO
from django.utils.deprecation import MiddlewareMixin
from django.conf import settings
......@@ -19,7 +20,7 @@ group_prefix_re = [
re.compile( ".*" ), # catch strange entries
]
class ProfileMiddleware(object):
class ProfileMiddleware(MiddlewareMixin):
"""
Displays hotshot profiling for any view.
http://yoursite.com/yourview/?prof
......
......@@ -27,6 +27,6 @@ INSTALLED_APPS += [
# Tuple of IPs which are marked as internal, useful for debugging
# Changed to a list in Django 1.9+
INTERNAL_IPS = [
#'129.89.57.164',
'129.89.57.164',
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment