Comments (1)
I have almost the same problem.
Here is a quick dirty patch:
diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py
index c6e73a0..4805683 100644
--- a/debug_toolbar/panels/sql.py
+++ b/debug_toolbar/panels/sql.py
@@ -152,7 +152,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper):
'duration': duration,
'raw_sql': sql,
'params': _params,
- 'hash': sha_constructor(settings.SECRET_KEY + sql + _params).hexdigest(),
+ 'hash': sha_constructor((settings.SECRET_KEY + sql + _params).encode('utf-8')).hexdigest(),
'stacktrace': stacktrace,
'start_time': start,
'stop_time': stop,
@@ -200,7 +200,7 @@ class DatabaseStatTracker(util.CursorDebugWrapper):
'duration': duration,
'raw_sql': sql,
'params': _params,
- 'hash': sha_constructor(settings.SECRET_KEY + sql + _params).hexdigest(),
+ 'hash': sha_constructor((settings.SECRET_KEY + sql + _params).encode('utf-8')).hexdigest(),
'stacktrace': stacktrace,
'start_time': start,
'stop_time': stop,
from django-debug-toolbar.
Related Issues (20)
- Error after update to 4.4.1 (debug_toolbar.E001) The Django Debug Toolbar can't be used with tests HOT 5
- Version 4.4.1 changes the look of DRF browsable API HOT 8
- Just Enabling Debug Toolbar as Middleware creates Delays of Several Seconds on each request HOT 14
- I can no longer use iptools.IpRangeList for INTERNAL_IPS HOT 5
- SVG definitions have width in rem which throws console errors HOT 5
- Time panel in Debug Toolbar not clickable due to missing <a> tag HOT 1
- There is a delay in response to requests. HOT 1
- Using the toolbar with Replit HOT 4
- Dark mode text needs higher contrast HOT 6
- AttributeError: This StreamingHttpResponse instance has no `content` attribute. Use `streaming_content` instead. HOT 5
- Jinja2 dependency breaks default install HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 2
- Release 4.4.4 seems to require Jinja2 HOT 3
- What time measures the "domLoading" entry under the time panel? HOT 2
- Crash on non-text views
- History sidebar panel keeps loading infinitely? HOT 14
- ImportError in 4.4.6 release cannot import name '_HTML_TYPES' from 'debug_toolbar.middleware' HOT 2
- Recast sentence HOT 3
- Using DDT with DRF Simple JWT HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-debug-toolbar.