# HG changeset patch # User neko259 # Date 2013-09-16 14:52:09 # Node ID 8017333084a8788a62e2c97652c502e2dff452c2 # Parent 4f171c7160098049fd0adff45a88d285180e0260 Added profiler to the debug mode. diff --git a/dependency_list.txt b/dependency_list.txt --- a/dependency_list.txt +++ b/dependency_list.txt @@ -3,4 +3,6 @@ django >= 1.5 django_cleanup django-markupfield markdown +python-markdown django-simple-captcha +line-profiler diff --git a/neboard/settings.py b/neboard/settings.py --- a/neboard/settings.py +++ b/neboard/settings.py @@ -208,3 +208,7 @@ ENABLE_CAPTCHA = False # if user tries to post before CAPTCHA_DEFAULT_SAFE_TIME. Captcha will be shown CAPTCHA_DEFAULT_SAFE_TIME = 30 # seconds POSTING_DELAY = 30 # seconds + +# Debug mode middlewares +if DEBUG: + MIDDLEWARE_CLASSES += ( 'boards.profiler.ProfilerMiddleware', )