head	1.13;
access;
symbols
	pkgsrc-2026Q1:1.13.0.2
	pkgsrc-2026Q1-base:1.13
	pkgsrc-2025Q4:1.12.0.2
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.11.0.4
	pkgsrc-2025Q3-base:1.11
	pkgsrc-2025Q2:1.11.0.2
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.10.0.2
	pkgsrc-2025Q1-base:1.10
	pkgsrc-2024Q4:1.9.0.4
	pkgsrc-2024Q4-base:1.9
	pkgsrc-2024Q3:1.9.0.2
	pkgsrc-2024Q3-base:1.9
	pkgsrc-2024Q2:1.7.0.2
	pkgsrc-2024Q2-base:1.7
	pkgsrc-2024Q1:1.6.0.2
	pkgsrc-2024Q1-base:1.6
	pkgsrc-2023Q4:1.5.0.2
	pkgsrc-2023Q4-base:1.5
	pkgsrc-2023Q3:1.4.0.8
	pkgsrc-2023Q3-base:1.4
	pkgsrc-2023Q2:1.4.0.6
	pkgsrc-2023Q2-base:1.4
	pkgsrc-2023Q1:1.4.0.4
	pkgsrc-2023Q1-base:1.4
	pkgsrc-2022Q4:1.4.0.2
	pkgsrc-2022Q4-base:1.4
	pkgsrc-2022Q3:1.3.0.2
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.2.0.4
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.2
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.1.0.12
	pkgsrc-2021Q4-base:1.1
	pkgsrc-2021Q3:1.1.0.10
	pkgsrc-2021Q3-base:1.1
	pkgsrc-2021Q2:1.1.0.8
	pkgsrc-2021Q2-base:1.1
	pkgsrc-2021Q1:1.1.0.6
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.4
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.2
	pkgsrc-2020Q3-base:1.1;
locks; strict;
comment	@# @;


1.13
date	2026.02.17.14.43.45;	author adam;	state Exp;
branches;
next	1.12;
commitid	1K1CUrP4Sd9EUJuG;

1.12
date	2025.10.31.08.37.48;	author adam;	state Exp;
branches;
next	1.11;
commitid	aDJJLOn8fB8koHgG;

1.11
date	2025.05.12.13.07.23;	author adam;	state Exp;
branches;
next	1.10;
commitid	hGZ9mMgBEjRBpCUF;

1.10
date	2025.01.14.08.12.44;	author adam;	state Exp;
branches;
next	1.9;
commitid	zlDhmeGuEUiFzqFF;

1.9
date	2024.07.17.09.14.16;	author adam;	state Exp;
branches;
next	1.8;
commitid	17ThrgvfpuKvJaiF;

1.8
date	2024.07.05.07.57.34;	author adam;	state Exp;
branches;
next	1.7;
commitid	GNPFH0eeo7f8HCgF;

1.7
date	2024.06.10.08.42.26;	author adam;	state Exp;
branches;
next	1.6;
commitid	2HxSUX3oypglKpdF;

1.6
date	2024.02.06.16.56.10;	author adam;	state Exp;
branches;
next	1.5;
commitid	rhOowDiDB6LOuoXE;

1.5
date	2023.12.02.08.11.21;	author adam;	state Exp;
branches;
next	1.4;
commitid	7ZGZ8uezZzRjIROE;

1.4
date	2022.11.29.20.41.28;	author adam;	state Exp;
branches;
next	1.3;
commitid	qUmKp7sCbWq0HD3E;

1.3
date	2022.08.24.09.25.57;	author wiz;	state Exp;
branches;
next	1.2;
commitid	xAufe2tgvglB47RD;

1.2
date	2022.01.04.20.55.19;	author wiz;	state Exp;
branches;
next	1.1;
commitid	CYyhdK9qtoffkmnD;

1.1
date	2020.08.06.12.02.30;	author joerg;	state Exp;
branches;
next	;
commitid	mbxtFKIFCcHVYZiC;


desc
@@


1.13
log
@py-django-debug-toolbar: updated to 6.2.0

6.2.0

Deprecate RedirectsPanel in favor of the HistoryPanel
Add cache view to example app
Add zizmor for GHA security analysis
Add indent size of 2 for yml files.
Reduce the number of test runs in CI.
Store the code coverage files on each test run for CI.
Use double-quotes for GITHUB_REF_NAME shell variable.
Add Django 6.0 to testing matrix
Add Django 6.0 to testing matrix
Persist the credentials because coverage_comment needs them.
Show cache alias instead of backend repr in calls table
Remove Django 5.0 to save some CI resources
Bye Python 39
Add support for enabling/disabling SQLPanel tracking of toolbar model queries
Enforce toolbar vs panel organization of configs.
Restore monospace font for templates and stacktraces
Added test to confirm assertNumQueries
Add Django built-in CSP nonce support
Set a dependabot cooldown.
Update the hash and version of python-coverage-comment-action
Fix string representation of values in settings panel
Declare support for Django 6.0
Exclude dependabot and pre-commit bot commits from GitHub release notes
Remove comment for clarity in DebugToolbarMiddleware call method
Add type hints for History Panel
Optimize CI with concurrency
Add LLM usage checkbox to PR template
Version 6.2.0
@
text
@# $NetBSD: Makefile,v 1.12 2025/10/31 08:37:48 adam Exp $

DISTNAME=	django_debug_toolbar-6.2.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_PYPI:=d/django-debug-toolbar/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/jazzband/django-debug-toolbar
COMMENT=	Debugging toolbar for Django
LICENSE=	modified-bsd

TOOL_DEPENDS+=	${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
DEPENDS+=	${PYPKGPREFIX}-sqlparse>=0.2.0:../../databases/py-sqlparse
DEPENDS+=	${PYPKGPREFIX}-django>=4.2.9:../../www/py-django

USE_LANGUAGES=	# none

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.12
log
@py-django-debug-toolbar: updated to 6.1.0

6.1.0 (2025-10-30)

* Added support for async to timer panel.
* Added a note about the default password in ``make example``.
* Removed logging about the toolbar failing to serialize a value into JSON.
* Moved the the import statement of ``debug_toolbar.urls`` to within the if
  statement's scope on the installation documentation.
* Changed ``StoredDebugToolbar.from_store`` to always create a panel key and
  class instance, regardless if any data was generated.
* Fixed selenium tests for CI by using psycopg for Python 3.13 runs.
* Added ``CommunityPanel`` containing links to documentation and resources.
* Upgraded CI ``postgis`` version to 17-3.5.
* Added how to generate the documentation locally to the contributing
  documentation.
* Updated logic that forces values to strings (``force_str``) to render
  "Django Debug Toolbar was unable to parse value." when there's a decoding
  error.
* Updated docs to show incompatibility with Django Channels.
* Hide the toolbar's migrations unless ``debug_toolbar.store.DatabaseStore``
  is being used. This may change in the future.
* Hide ``debug_toolbar.HistoryEntry`` as a model unless
  ``debug_toolbar.store.DatabaseStore`` is being used. This may change in the
  future.

6.0.0 (2025-07-22)

* Added support for checking if pytest as the test runner when determining
  if tests are running.
* Added ``show_toolbar_with_docker`` function to check Docker host IP address
  when running inside Docker containers.
* Defines the ``BaseStore`` interface for request storage mechanisms.
* Added the setting ``TOOLBAR_STORE_CLASS`` to configure the request
  storage mechanism. Defaults to ``debug_toolbar.store.MemoryStore``.
* Rename ``store_id`` properties to ``request_id`` and ``Toolbar.store`` to
  ``Toolbar.init_store``.
* Support ``Panel`` instances with stored stats via
  ``Panel.load_stats_from_store``.
* Swapped ``Toolbar._store`` for the ``get_store()`` class.
* Created a ``StoredDebugToolbar`` that support creating an instance of the
  toolbar representing an old request. It should only be used for fetching
  panels' contents.
* Drop ``raw_params`` from query data.
* Queries now have a unique ``djdt_query_id``. The SQL forms now reference
  this id and avoid passing SQL to be executed.
* Move the formatting logic of SQL queries to just before rendering in
  ``SQLPanel.content``.
* Make ``Panel.panel_id`` a class member.
* Update all panels to utilize data from ``Panel.get_stats()`` to load content
  to render. Specifically for ``Panel.title`` and ``Panel.nav_title``.
* Extend example app to contain an async version.
* Added ``debug_toolbar.store.DatabaseStore`` for persistent debug data
  storage.
* Deduplicated static files in the staticfiles panel.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/05/12 13:07:23 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-6.1.0
@


1.11
log
@py-django-debug-toolbar: updated to 5.2.0

5.2.0 (2025-04-29)

* Added hook to RedirectsPanel for subclass customization.
* Added feature to sanitize sensitive data in the Request Panel.
* Fixed dark mode conflict in code block toolbar CSS.
* Properly allowed overriding the system theme preference by using the theme
  selector. Removed the ``DEFAULT_THEME`` setting, we should always default to
  system-level defaults where possible.
* Added support for using django-template-partials with the template panel's
  source view functionality. The same change possibly adds support for other
  template loaders.
* Introduced `djade <https://github.com/adamchainz/djade>`__ to format Django
  templates.
* Swapped display order of panel header and close button to prevent style
  conflicts
* Added CSS for resetting the height of elements too to avoid problems with
  global CSS of a website where the toolbar is used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2025/01/14 08:12:44 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-5.2.0
@


1.10
log
@py-django-debug-toolbar: updated to 5.0.1

5.0.1 (2025-01-13)

* Fixing the build and release process. No functional changes.

5.0.0 (2025-01-11)

* Added Python 3.13 to the CI matrix.
* Removed support for Python 3.8 as it has reached end of life.
* Converted to Django Commons PyPI release process.
* Fixed a crash which occurred when using non-``str`` static file values.
* Documented experimental async support.
* Improved troubleshooting doc for incorrect mime types for .js static files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2024/07/17 09:14:16 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-5.0.1
@


1.9
log
@py-django-debug-toolbar: updated to 4.4.6

4.4.6 (2024-07-10)

* Changed ordering (and grammatical number) of panels and their titles in
  documentation to match actual panel ordering and titles.
* Skipped processing the alerts panel when response isn't a HTML response.

4.4.5 (2024-07-05)

* Avoided crashing when the alerts panel was skipped.
* Removed the inadvertently added hard dependency on Jinja2.

4.4.4 (2024-07-05)

* Added check for StreamingHttpResponse in alerts panel.
* Instrument the Django Jinja2 template backend. This only instruments
  the immediate template that's rendered. It will not provide stats on
  any parent templates.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2024/07/05 07:57:34 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-4.4.6
a18 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

@


1.8
log
@py-django-debug-toolbar: updated to 4.4.3

4.4.3 (2024-07-04)

* Added alert panel with warning when form is using file fields
  without proper encoding type.
* Fixed overriding font-family for both light and dark themes.
* Restored compatibility with ``iptools.IpRangeList``.
* Limit ``E001`` check to likely error cases when the
  ``SHOW_TOOLBAR_CALLBACK`` has changed, but the toolbar's URL
  paths aren't installed.
* Introduce helper function ``debug_toolbar_urls`` to
  simplify installation.
* Moved "1rem" height/width for SVGs to CSS properties.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2024/06/10 08:42:26 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-4.4.3
@


1.7
log
@py-django-debug-toolbar: updated to 4.4.2

4.4.2 (2024-05-27)
------------------

* Removed some CSS which wasn't carefully limited to the toolbar's elements.
* Stopped assuming that ``INTERNAL_IPS`` is a list.
* Added a section to the installation docs about running tests in projects
  where the toolbar is being used.


4.4.1 (2024-05-26)
------------------

* Pin metadata version to 2.2 to be compatible with Jazzband release
  process.

4.4.0 (2024-05-26)
------------------

* Raised the minimum Django version to 4.2.
* Automatically support Docker rather than having the developer write a
  workaround for ``INTERNAL_IPS``.
* Display a better error message when the toolbar's requests
  return invalid json.
* Render forms with ``as_div`` to silence Django 5.0 deprecation warnings.
* Stayed on top of pre-commit hook updates.
* Added :doc:`architecture documentation <architecture>` to help
  on-board new contributors.
* Removed the static file path validation check in
  :class:`StaticFilesPanel <debug_toolbar.panels.staticfiles.StaticFilesPanel>`
  since that check is made redundant by a similar check in Django 4.0 and
  later.
* 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``
* Added ``IS_RUNNING_TESTS`` setting to allow overriding the
  ``debug_toolbar.E001`` check to avoid including the toolbar when running
  tests.
* Fixed the bug causing ``'djdt' is not a registered namespace`` and updated
  docs to help in initial configuration while running tests.
* Added a link in the installation docs to a more complete installation
  example in the example app.
* Added check to prevent the toolbar from being installed when tests
  are running.
* Added test to example app and command to run the example app's tests.
* Implemented dark mode theme and button to toggle the theme,
  introduced the ``DEFAULT_THEME`` setting which sets the default theme
  to use.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/02/06 16:56:10 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-4.4.2
@


1.6
log
@py-django-debug-toolbar: updated to 4.3.0

4.3.0 (2024-02-01)
------------------

* Dropped support for Django 4.0.
* Added Python 3.12 to test matrix.
* Removed outdated third-party panels from the list.
* Avoided the unnecessary work of recursively quoting SQL parameters.
* Postponed context process in templates panel to include lazy evaluated
  content.
* Fixed template panel to avoid evaluating ``LazyObject`` when not already
  evaluated.
* Added support for Django 5.0.
* Refactor the ``utils.get_name_from_obj`` to simulate the behavior of
  ``django.contrib.admindocs.utils.get_view_name``.
* Switched from black to the `ruff formatter
  <https://astral.sh/blog/the-ruff-formatter>`__.
* Changed the default position of the toolbar from top to the upper top
  position.
* Added the setting, ``UPDATE_ON_FETCH`` to control whether the
  toolbar automatically updates to the latest AJAX request or not.
  It defaults to ``False``.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2023/12/02 08:11:21 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-4.3.0
d15 1
a15 1
DEPENDS+=	${PYPKGPREFIX}-django>=3.2.4:../../www/py-django
@


1.5
log
@py-django-debug-toolbar: updated to 4.2.0

4.2.0 (2023-08-10)
------------------

* Adjusted app directories system check to allow for nested template loaders.
* Switched from flake8, isort and pyupgrade to `ruff
  <https://beta.ruff.rs/>`__.
* Converted cookie keys to lowercase. Fixed the ``samesite`` argument to
  ``djdt.cookie.set``.
* Converted ``StaticFilesPanel`` to no longer use a thread collector. Instead,
  it collects the used static files in a ``ContextVar``.
* Added check ``debug_toolbar.W007`` to warn when JavaScript files are
  resolving to the wrong content type.
* Fixed SQL statement recording under PostgreSQL for queries encoded as byte
  strings.
* Patch the ``CursorWrapper`` class with a mixin class to support multiple
  base wrapper classes.

4.1.0 (2023-05-15)
------------------

* Improved SQL statement formatting performance.  Additionally, fixed the
  indentation of ``CASE`` statements and stopped simplifying ``.count()``
  queries.
* Added support for the new STORAGES setting in Django 4.2 for static files.
* Added support for theme overrides.
* Reworked the cache panel instrumentation code to no longer attempt to undo
  monkey patching of cache methods, as that turned out to be fragile in the
  presence of other code which also monkey patches those methods.
* Update all timing code that used :py:func:`time.time()` to use
  :py:func:`time.perf_counter()` instead.
* Made the check on ``request.META["wsgi.multiprocess"]`` optional, but
  defaults to forcing the toolbar to render the panels on each request. This
  is because it's likely an ASGI application that's serving the responses
  and that's more likely to be an incompatible setup. If you find that this
  is incorrect for you in particular, you can use the ``RENDER_PANELS``
  setting to forcibly control this logic.

4.0.0 (2023-04-03)
------------------

* Added Django 4.2 to the CI.
* Dropped support for Python 3.7.
* Fixed PostgreSQL raw query with a tuple parameter during on explain.
* Use ``TOOLBAR_LANGUAGE`` setting when rendering individual panels
  that are loaded via AJAX.
* Add decorator for rendering toolbar views with ``TOOLBAR_LANGUAGE``.
* Removed the logging panel. The panel's implementation was too complex, caused
  memory leaks and sometimes very verbose and hard to silence output in some
  environments (but not others). The maintainers judged that time and effort is
  better invested elsewhere.
* Added support for psycopg3.
* When ``ENABLE_STACKTRACE_LOCALS`` is ``True``, the stack frames' locals dicts
  will be converted to strings when the stack trace is captured rather when it
  is rendered, so that the correct values will be displayed in the rendered
  stack trace, as they may have changed between the time the stack trace was
  captured and when it is rendered.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2022/11/29 20:41:28 adam Exp $
d3 1
a3 1
DISTNAME=	django_debug_toolbar-4.2.0
@


1.4
log
@py-django-debug-toolbar: updated to 3.7.0

3.7.0 (2022-09-25)

Added Profiling panel setting PROFILER_THRESHOLD_RATIO to give users better control over how many function calls are included. A higher value will include more data, but increase render time.

Update Profiling panel to include try to always include user code. This code is more important to developers than dependency code.

Highlight the project function calls in the profiling panel.

Added Profiling panel setting PROFILER_CAPTURE_PROJECT_CODE to allow users to disable the inclusion of all project code. This will be useful to project setups that have dependencies installed under settings.BASE_DIR.

The toolbar’s font stack now prefers system UI fonts. Tweaked paddings, margins and alignments a bit in the CSS code.

Only sort the session dictionary when the keys are all strings. Fixes a bug that causes the toolbar to crash when non-strings are used as keys.

3.6.0 (2022-08-17)

Remove decorator signed_data_view as it was causing issues with django-urlconfchecks.

Added pygments to the test environment and fixed a crash when using the template panel with Django 4.1 and pygments installed.

Stayed on top of pre-commit hook and GitHub actions updates.

Added some workarounds to avoid a Chromium warning which was worrisome to developers.

Avoided using deprecated Selenium methods to find elements.

Raised the minimum Django version from 3.2 to 3.2.4 so that we can take advantage of backported improvements to the cache connection handler.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2022/08/24 09:25:57 wiz Exp $
d3 2
a4 2
DISTNAME=	django-debug-toolbar-3.7.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
d13 1
d15 1
a15 1
DEPENDS+=	${PYPKGPREFIX}-django>=3.2.4:../../www/py-django3
d21 1
a21 1
.include "../../lang/python/egg.mk"
@


1.3
log
@*: use coverage from versioned_dependencies.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2022/01/04 20:55:19 wiz Exp $
d3 1
a3 1
DISTNAME=	django-debug-toolbar-2.2
a4 1
PKGREVISION=	1
d6 1
a6 1
MASTER_SITES=	${MASTER_SITE_GITHUB:=jazzband/}
a12 3
GITHUB_PROJECT=	django-debug-toolbar
GITHUB_TAG=	${PKGVERSION_NOREV}

d14 1
a14 1
DEPENDS+=	${PYPKGPREFIX}-django>=1.11:../../www/py-django
d18 1
a18 5
PYTHON_VERSIONED_DEPENDENCIES+=	coverage:test

do-test:
	cd ${WRKSRC} && ${PREFIX}/bin/coverage-${PYVERSSUFFIX} \
	    run -m django test --settings=tests.settings
a19 1
.include "../../lang/python/versioned_dependencies.mk"
@


1.2
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/08/06 12:02:30 joerg Exp $
a18 1
TEST_DEPENDS+=	${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
d22 2
d28 1
@


1.1
log
@Add py-django-debug-toolbar-2.2:

The Django Debug Toolbar is a configurable set of panels that display
various debug information about the current request/response and when
clicked, display more details about the panel's content.
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
@

