Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Adding new debug setting to allow the use of the user panel when DEBUG is False #13

Merged
merged 1 commit into from almost 2 years ago

2 participants

Derek Stegelman Chris Lamb
Derek Stegelman

Adding this new setting allows for users to set their own preference for using the toolbar when DEBUG = False without having to set DEBUG to True.

Chris Lamb lamby merged commit 016ea54 into from
Chris Lamb lamby closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 03, 2012
Derek Stegelman dstegelman Adding new debug setting to allow the user of the user panel when DEB…
…UG = False
a8c3c97
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  debug_toolbar_user_panel/decorators.py
2  debug_toolbar_user_panel/decorators.py
@@ -6,7 +6,7 @@
6 6 def debug_required(fn):
7 7 @functools.wraps(fn)
8 8 def wrapper(*args, **kwargs):
9   - if not settings.DEBUG:
  9 + if not getattr(settings, 'DEBUG_TOOLBAR_USER_DEBUG', settings.DEBUG):
10 10 return HttpResponseForbidden()
11 11 return fn(*args, **kwargs)
12 12 return wrapper

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.