Skip to content

Commit

Permalink
If settings.DEBUG is True, then django-debug-toolbar is exempt
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed May 1, 2014
1 parent 76c903c commit a7bb7ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djstripe/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def process_request(self, request):
if "({0})".format(match.app_name) in EXEMPT:
return

if "account" in request.path:
raise Exception(match)

if "[{0}]".format(match.namespace) in EXEMPT:
return

Expand Down
7 changes: 7 additions & 0 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ Example:
"home", # Site homepage
)
.. note:: Adding app_names to applications.

To make the ``(allauth)`` work, you may need to define an app_name in the ``include()`` function in the URLConf. For example::

# in urls.py
url(r'^accounts/', include('allauth.urls', app_name="allauth")),

DJSTRIPE_TRIAL_PERIOD_FOR_USER_CALLBACK (=None)
--------------------------------------------------

Expand Down

0 comments on commit a7bb7ba

Please sign in to comment.