Skip to content

Commit dde5cfb

Browse files
committed
Added a profiling middleware to development settings, if found during django setup.
- Legacy-Id: 14984
1 parent 1bbe5cf commit dde5cfb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,3 +1051,9 @@ def skip_unreadable_post(record):
10511051

10521052
ALLOWED_HOSTS = ['*',]
10531053

1054+
try:
1055+
# see https://github.com/omarish/django-cprofile-middleware
1056+
import django_cprofile_middleware # pyflakes:ignore
1057+
MIDDLEWARE = MIDDLEWARE + ('django_cprofile_middleware.middleware.ProfilerMiddleware', )
1058+
except ImportError:
1059+
pass

0 commit comments

Comments
 (0)