From e8848dc77f3aefdb49731d4450f598d713d7f75d Mon Sep 17 00:00:00 2001 From: Elineda Date: Thu, 21 Mar 2024 01:59:29 +0100 Subject: [PATCH] Docs > Add a note on the profiling panel doc (#1899) Add a note on the profiling panel document about python 3.12 and later. --- docs/changes.rst | 2 ++ docs/panels.rst | 4 ++++ docs/spelling_wordlist.txt | 2 ++ 3 files changed, 8 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index b461fbb40..5e2b4081f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -20,6 +20,8 @@ Pending * Deprecated the ``OBSERVE_REQUEST_CALLBACK`` setting and added check ``debug_toolbar.W008`` to warn when it is present in ``DEBUG_TOOLBAR_SETTINGS``. +* Add a note on the profiling panel about using Python 3.12 and later + about needing ``--nothreading`` 4.3.0 (2024-02-01) ------------------ diff --git a/docs/panels.rst b/docs/panels.rst index db4e9311f..33359ea46 100644 --- a/docs/panels.rst +++ b/docs/panels.rst @@ -123,6 +123,10 @@ Profiling information for the processing of the request. This panel is included but inactive by default. You can activate it by default with the ``DISABLE_PANELS`` configuration option. +For version of Python 3.12 and later you need to use +``python -m manage runserver --nothreading`` +Concurrent requests don't work with the profiling panel. + The panel will include all function calls made by your project if you're using the setting ``settings.BASE_DIR`` to point to your project's root directory. If a function is in a file within that directory and does not include diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index 436977bdc..829ff9bec 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -36,6 +36,7 @@ mousedown mouseup multi neo +nothreading paddings pre profiler @@ -47,6 +48,7 @@ pyupgrade querysets refactoring resizing +runserver spellchecking spooler stacktrace