From b09c98f9b6407380b94b312e7b677269e5d7767f Mon Sep 17 00:00:00 2001 From: elineda Date: Tue, 19 Mar 2024 13:36:37 +0100 Subject: [PATCH 1/5] Docs > Add a note on the profiling panel document about python 3.12 and after. --- docs/changes.rst | 1 + docs/panels.rst | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/changes.rst b/docs/changes.rst index b461fbb40..ec032185a 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -20,6 +20,7 @@ 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 document about python 3.12 and after. 4.3.0 (2024-02-01) ------------------ diff --git a/docs/panels.rst b/docs/panels.rst index db4e9311f..323daf3ee 100644 --- a/docs/panels.rst +++ b/docs/panels.rst @@ -123,6 +123,9 @@ 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 after you need to add --nothreading to the runserver. +Concurrent requests don't work with the profiling. + 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 From 85c9bf627e7e122fc6bdf64cd48bb3dd97c003ca Mon Sep 17 00:00:00 2001 From: elineda Date: Tue, 19 Mar 2024 13:40:05 +0100 Subject: [PATCH 2/5] Docs > Add a note on the profiling panel document about python 3.12 and after. [m] Fix line too long --- docs/panels.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/panels.rst b/docs/panels.rst index 323daf3ee..218b5f8b1 100644 --- a/docs/panels.rst +++ b/docs/panels.rst @@ -123,8 +123,8 @@ 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 after you need to add --nothreading to the runserver. -Concurrent requests don't work with the profiling. +For version of python 3.12 and after you need to add --nothreading +to the runserver. Concurrent requests don't work with the profiling. 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. From aae5c7fcbf74a23fc82914aeb356daf43e6180e8 Mon Sep 17 00:00:00 2001 From: elineda Date: Tue, 19 Mar 2024 13:44:52 +0100 Subject: [PATCH 3/5] Docs > Add a note on the profiling panel document about python 3.12 and after. [m] add runserver and nothreading to spelling_wordlist.txt --- docs/spelling_wordlist.txt | 2 ++ 1 file changed, 2 insertions(+) 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 From 26648159abd821b578588f9a785c2882dd802ae1 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Wed, 20 Mar 2024 19:56:46 -0500 Subject: [PATCH 4/5] English changes for nothreading note --- docs/changes.rst | 3 ++- docs/panels.rst | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/changes.rst b/docs/changes.rst index ec032185a..499a4411f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -20,7 +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 document about python 3.12 and after. +* 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 218b5f8b1..33359ea46 100644 --- a/docs/panels.rst +++ b/docs/panels.rst @@ -123,8 +123,9 @@ 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 after you need to add --nothreading -to the runserver. Concurrent requests don't work with the profiling. +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. From db54a12f4cf78900c89bc7da7084fded2a6af031 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 00:56:56 +0000 Subject: [PATCH 5/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/changes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changes.rst b/docs/changes.rst index 499a4411f..5e2b4081f 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -20,7 +20,7 @@ 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 +* Add a note on the profiling panel about using Python 3.12 and later about needing ``--nothreading`` 4.3.0 (2024-02-01)