Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/django-commons/django-debug-toolbar
/ functions
Functions
780 in github.com/django-commons/django-debug-toolbar
⨍
Functions
780
◇
Types & classes
125
↳
Endpoints
26
↓ 294 callers
Method
get
(self, url)
tests/test_integration.py:719
↓ 68 callers
Method
process_request
Like __call__ in Django's middleware. Write panel logic related to the request there. Save data with :meth:`record_stats`.
debug_toolbar/panels/__init__.py:222
↓ 61 callers
Method
generate_stats
Write panel logic related to the response there. Post-process data gathered while the view executed. Save data with :meth:`record_sta
debug_toolbar/panels/__init__.py:259
↓ 56 callers
Method
get_stats
Access data stored by the panel. Returns a :class:`dict`.
debug_toolbar/panels/__init__.py:199
↓ 44 callers
Method
get_panel_by_id
Get the panel with the given id, which is the class name by default.
debug_toolbar/toolbar.py:85
↓ 38 callers
Method
set
Set a request_id in the store
debug_toolbar/store.py:85
↓ 37 callers
Method
request_ids
The stored request ids
debug_toolbar/store.py:75
↓ 29 callers
Function
get_store
()
debug_toolbar/store.py:430
↓ 24 callers
Method
save_panel
Save the panel data for the given request_id
debug_toolbar/store.py:100
↓ 22 callers
Method
is_toolbar_request
Determine if the request is for a DebugToolbar view.
debug_toolbar/toolbar.py:177
↓ 21 callers
Method
count
(self)
debug_toolbar/panels/profiling.py:105
↓ 21 callers
Method
panel
Fetch the panel data for the given request_id
debug_toolbar/store.py:105
↓ 20 callers
Method
fetch
( cls, request_id: str, panel_id: str | None = None )
debug_toolbar/toolbar.py:137
↓ 18 callers
Method
clear
Remove all requests from the request store
debug_toolbar/store.py:90
↓ 18 callers
Method
record_stats
Store data gathered by the panel. ``stats`` is a :class:`dict`. Each call to ``record_stats`` updates the store's data for t
debug_toolbar/panels/__init__.py:184
↓ 16 callers
Method
_get_request_id
Generate a request ID for testing.
tests/test_store.py:120
↓ 14 callers
Method
delete
Delete the store for the given request_id
debug_toolbar/store.py:95
↓ 14 callers
Method
exists
Does the given request_id exist in the store
debug_toolbar/store.py:80
↓ 14 callers
Method
sign
(cls, data)
debug_toolbar/forms.py:49
↓ 13 callers
Method
execute
(self, sql, params=None)
debug_toolbar/panels/sql/tracking.py:280
↓ 11 callers
Function
show_toolbar
Default function to determine whether to show the toolbar on a given page.
debug_toolbar/middleware.py:29
↓ 10 callers
Method
disable_instrumentation
Disable instrumentation to gather data for this panel. This is the opposite of :meth:`enable_instrumentation`. Unless the t
debug_toolbar/panels/__init__.py:172
↓ 10 callers
Method
enable_instrumentation
Enable instrumentation to gather data for this panel. This usually means monkey-patching (!) or registering signal receivers
debug_toolbar/panels/__init__.py:156
↓ 10 callers
Function
getDebugElement
()
debug_toolbar/static/debug_toolbar/js/utils.js:80
↓ 9 callers
Function
sanitize_and_sort_request_vars
Get a data structure for showing a sorted list of variables from the request data with sensitive values redacted.
debug_toolbar/utils.py:220
↓ 8 callers
Function
addRow
(tbody, stat, endStat)
debug_toolbar/static/debug_toolbar/js/timer.js:34
↓ 8 callers
Function
ajax
(url, init)
debug_toolbar/static/debug_toolbar/js/utils.js:88
↓ 8 callers
Method
assertValidHTML
(self, content)
tests/base.py:103
↓ 7 callers
Method
_get_cache
Get the Django cache backend, wrapped to bypass toolbar tracking.
debug_toolbar/store.py:297
↓ 7 callers
Method
_request_key
Return the cache key for a specific request's data.
debug_toolbar/store.py:340
↓ 7 callers
Method
check_invalid_file_form_configuration
Inspects HTML content for a form that includes a file input but does not have the encoding type set to multipart/form-data, and warns
debug_toolbar/panels/alerts.py:98
↓ 7 callers
Method
serialize
(self)
debug_toolbar/panels/profiling.py:134
↓ 7 callers
Function
sql_call
(*, use_iterator=False)
tests/panels/test_sql.py:34
↓ 6 callers
Method
_elapsed_ru
(start, end, name)
debug_toolbar/panels/timer.py:125
↓ 6 callers
Method
_fail_if_missing
Search elements, fail if a `nonce` attribute is missing on them.
tests/test_csp_rendering.py:60
↓ 6 callers
Function
deserialize
(data: str)
debug_toolbar/store.py:69
↓ 6 callers
Function
force_str
Forces values to strings. Will return "Django Debug Toolbar was unable to parse value." when there's a decoding error.
debug_toolbar/sanitize.py:4
↓ 6 callers
Method
get_app_version
(self, app)
debug_toolbar/panels/versions.py:47
↓ 6 callers
Function
get_stack_trace
Return a processed stack trace for the current call stack. If the ``ENABLE_STACKTRACES`` setting is False, return an empty :class:`list`.
debug_toolbar/utils.py:358
↓ 6 callers
Method
record_server_timing
Store data gathered by the panel. ``stats`` is a :class:`dict`. Each call to ``record_stats`` updates the statistics dictionary.
debug_toolbar/panels/__init__.py:205
↓ 6 callers
Function
render_stacktrace
(trace: stubs.TidyStackTrace)
debug_toolbar/utils.py:72
↓ 6 callers
Function
set
(key, value, options = {})
debug_toolbar/static/debug_toolbar/js/toolbar.js:363
↓ 5 callers
Method
_request_ids_key
Return the cache key for the request IDs list.
debug_toolbar/store.py:335
↓ 5 callers
Method
cursor
(self)
debug_toolbar/panels/sql/forms.py:122
↓ 5 callers
Function
get_name_from_obj
Get the best name as `str` from a view or a object.
debug_toolbar/utils.py:169
↓ 5 callers
Function
get_namespaces
Return the default `xmlns`. See https://docs.python.org/3/library/xml.etree.elementtree.html#parsing-xml-with-namespaces
tests/test_csp_rendering.py:42
↓ 5 callers
Method
get_panel_classes
(cls)
debug_toolbar/toolbar.py:149
↓ 5 callers
Method
panels
Fetch all the panel data for the given request_id.
debug_toolbar/store.py:422
↓ 5 callers
Function
regular_view
(request, title)
tests/views.py:76
↓ 5 callers
Method
should_render_panels
Determine whether the panels should be rendered during the request If False, the panels will be loaded via Ajax.
debug_toolbar/toolbar.py:117
↓ 4 callers
Method
_fail_if_found
Search elements, fail if a `nonce` attribute is found on them.
tests/test_csp_rendering.py:69
↓ 4 callers
Method
_fail_on_invalid_html
Fail if the passed HTML is invalid.
tests/test_csp_rendering.py:78
↓ 4 callers
Function
_is_running_tests
Helper function to support testing default value for IS_RUNNING_TESTS
debug_toolbar/settings.py:11
↓ 4 callers
Method
_resolve_stats
(self, path)
tests/test_integration.py:126
↓ 4 callers
Function
debug_toolbar_urls
Return a URL pattern for serving toolbar in debug mode. from django.conf import settings from debug_toolbar.toolbar import debug_toolbar
debug_toolbar/toolbar.py:254
↓ 4 callers
Method
get_response
(self, request)
tests/base.py:97
↓ 4 callers
Function
get_show_toolbar
Get the callback function to show the toolbar. Will wrap the function with sync_to_async or async_to_sync depending on the status of asy
debug_toolbar/middleware.py:91
↓ 4 callers
Method
init_store
(self)
debug_toolbar/toolbar.py:126
↓ 4 callers
Function
patch_tracking_ddt_models
Set the tracking.DDT_MODELS constant to the toolbar's models. This only gets configured when the store is set to the DatabaseStore.
tests/panels/test_sql.py:67
↓ 4 callers
Function
reformat_sql
(sql, *, with_toggle=False)
debug_toolbar/panels/sql/utils.py:91
↓ 3 callers
Method
_key_prefix
Get the cache key prefix from settings.
debug_toolbar/store.py:330
↓ 3 callers
Function
_manage_migrations_visibility
Adjust the toolbar's migration visibility by manipulating the project's settings. This is a hack since it's manipulating settings.
debug_toolbar/apps.py:43
↓ 3 callers
Method
_record
(self, method, sql, params)
debug_toolbar/panels/sql/tracking.py:190
↓ 3 callers
Function
ajaxForm
(element)
debug_toolbar/static/debug_toolbar/js/utils.js:112
↓ 3 callers
Function
debounce
(func, timeout)
debug_toolbar/static/debug_toolbar/js/utils.js:148
↓ 3 callers
Method
generate_server_timing
Similar to :meth:`generate_stats <debug_toolbar.panels.Panel.generate_stats>`, Generate stats for Server Timing https://w3c.
debug_toolbar/panels/__init__.py:271
↓ 3 callers
Function
get_csp_nonce
Retrieve the Content Security Policy nonce from a request if there is one. This supports both the django-csp and the built-in Django impleme
debug_toolbar/utils.py:406
↓ 3 callers
Method
get_server_timing_stats
Access data stored by the panel. Returns a :class:`dict`.
debug_toolbar/panels/__init__.py:214
↓ 3 callers
Function
get_signed_data
Unpack a signed data form, if invalid returns None
debug_toolbar/panels/sql/views.py:12
↓ 3 callers
Method
import_models
Override import models to avoid allowing users to dynamically fetch a model that doesn't have a table behind it unless they are using
debug_toolbar/apps.py:29
↓ 3 callers
Function
parse_sql
(sql, *, simplify=False)
debug_toolbar/panels/sql/utils.py:103
↓ 3 callers
Function
replaceToolbarState
(newRequestId, data)
debug_toolbar/static/debug_toolbar/js/utils.js:125
↓ 3 callers
Function
serialize
(data: Any)
debug_toolbar/store.py:62
↓ 3 callers
Method
verified_data
(self)
debug_toolbar/forms.py:45
↓ 2 callers
Method
_cleanup_old_entries
Enforce the cache size limit - keeping only the most recently used entries up to RESULTS_CACHE_SIZE.
debug_toolbar/store.py:181
↓ 2 callers
Function
_is_excluded_frame
(frame: Any, excluded_modules: Sequence[str] | None)
debug_toolbar/utils.py:25
↓ 2 callers
Function
_monkey_patch_cache
(cache, alias, panel)
debug_toolbar/panels/cache.py:47
↓ 2 callers
Method
_postprocess
Post-process the response.
debug_toolbar/middleware.py:181
↓ 2 callers
Function
_process_query_groups
(query_groups, databases, colors, name)
debug_toolbar/panels/sql/panel.py:96
↓ 2 callers
Method
_process_response
Common response processing logic.
debug_toolbar/panels/redirects.py:21
↓ 2 callers
Method
_render_row
(self, row)
debug_toolbar/panels/sql/forms.py:54
↓ 2 callers
Function
_stack_trace_deprecation_warning
()
debug_toolbar/utils.py:38
↓ 2 callers
Method
add_alert
(self, alert)
debug_toolbar/panels/alerts.py:95
↓ 2 callers
Function
async_sql_call_toolbar_model
(async) Query one of the toolbar's models to test tracking of SQL queries.
tests/panels/test_sql.py:47
↓ 2 callers
Function
clear_stack_trace_caches
()
debug_toolbar/utils.py:388
↓ 2 callers
Function
contrasting_color_generator
()
debug_toolbar/panels/sql/utils.py:139
↓ 2 callers
Function
getLeft
(stat)
debug_toolbar/static/debug_toolbar/js/timer.js:9
↓ 2 callers
Function
get_filter_stack
(*, simplify)
debug_toolbar/panels/sql/utils.py:117
↓ 2 callers
Method
get_staticfiles_apps
Returns a list of app paths that have a static directory
debug_toolbar/panels/staticfiles.py:137
↓ 2 callers
Method
get_staticfiles_dirs
Returns a list of paths to inspect for additional static files
debug_toolbar/panels/staticfiles.py:127
↓ 2 callers
Function
get_template_info
()
debug_toolbar/utils.py:107
↓ 2 callers
Function
is_middleware_class
(middleware_class, middleware_path)
debug_toolbar/apps.py:185
↓ 2 callers
Function
is_processable_html_response
(response)
debug_toolbar/utils.py:396
↓ 2 callers
Method
is_project_func
Check if the function is from the project code. Project code is identified by the BASE_DIR setting which is used in Django p
debug_toolbar/panels/profiling.py:37
↓ 2 callers
Method
load_stats_from_store
Instantiate the panel from serialized data. Return the panel instance.
debug_toolbar/panels/__init__.py:281
↓ 2 callers
Method
new_transaction_id
Generate and return a new synthetic transaction ID for the specified DB alias.
debug_toolbar/panels/sql/panel.py:127
↓ 2 callers
Function
patch_cursor_wrapper_with_mixin
(base_wrapper, mixin)
debug_toolbar/panels/sql/tracking.py:107
↓ 2 callers
Function
pluckData
* Create an array of dataset properties from a NodeList.
debug_toolbar/static/debug_toolbar/js/history.js:16
↓ 2 callers
Method
ready
Perform early initialization for the panel. This should only include initialization or instrumentation that needs to be done
debug_toolbar/panels/__init__.py:136
↓ 2 callers
Method
reload_stats
(self)
tests/base.py:114
next →
1–100 of 780, ranked by callers