-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with toolbar expecting urls to start with __debug__.
When the history panel was added and we expanded the number of urls we were instrumenting, there was a check added to exclude the requests to the toolbar's views. This was done by checking the path of the request to see if it started with __debug__. However, the documentation states that is not a requirement. This change checks the urls to see if the namespace of the resolved url matches the toolbar's namespace. This still isn't perfect as another url path could contain the last namespace of djdt, but this is much less likely than a user defining the toolbar's urls at a different path than /__debug__/
- Loading branch information
1 parent
3dc5437
commit d07c2d5
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"""Invalid urls.py file for testing""" | ||
urlpatterns = [] |