diff --git a/middleware/profiling.py b/middleware/profiling.py index 2e7acdc16ba2d250aa8edf1debd1e4980d8539f7..811c41aafc2a19dc5305de10d0c1d03eca918d5b 100644 --- a/middleware/profiling.py +++ b/middleware/profiling.py @@ -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 diff --git a/settings/test.py b/settings/test.py index a6cb8b6f32e3b292bc1a194f6eeaa85f30f74f7b..33fcddf217c97548ee74643249dda22634a77a38 100644 --- a/settings/test.py +++ b/settings/test.py @@ -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', ]