File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
from collections import OrderedDict
3
3
4
4
from django .template .loader import render_to_string
5
- from django .utils .encoding import force_text
5
+ from django .utils .encoding import force_str
6
6
7
7
from debug_toolbar .middleware import _HTML_TYPES
8
8
from debug_toolbar .middleware import DebugToolbarMiddleware as BaseMiddleware
@@ -20,7 +20,7 @@ def set_content_length(response):
20
20
21
21
22
22
def get_payload (request , response , toolbar ):
23
- content = force_text (response .content , encoding = response .charset )
23
+ content = force_str (response .content , encoding = response .charset )
24
24
payload = json .loads (content , object_pairs_hook = OrderedDict )
25
25
payload ["debugToolbar" ] = OrderedDict ([("panels" , OrderedDict ())])
26
26
Original file line number Diff line number Diff line change 1
- from django .conf . urls import include , url
1
+ from django .urls import include , path
2
2
3
3
import debug_toolbar
4
4
5
5
urlpatterns = [
6
- url ( r"^ __debug__/" , include (debug_toolbar .urls )),
6
+ path ( " __debug__/" , include (debug_toolbar .urls )),
7
7
]
You can’t perform that action at this time.
0 commit comments