Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ venv
.direnv/
.envrc
venv
.vscode
13 changes: 13 additions & 0 deletions debug_toolbar/panels/community.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.utils.translation import gettext_lazy as _

from debug_toolbar.panels import Panel


class CommunityPanel(Panel):
"""
A panel that provides links to the Django Debug Toolbar community.
"""

is_async = True
template = "debug_toolbar/panels/community.html"
title = _("Community")
1 change: 1 addition & 0 deletions debug_toolbar/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def get_config():
"debug_toolbar.panels.alerts.AlertsPanel",
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.community.CommunityPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
"debug_toolbar.panels.profiling.ProfilingPanel",
]
Expand Down
37 changes: 37 additions & 0 deletions debug_toolbar/static/debug_toolbar/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -1182,3 +1182,40 @@ To regenerate:
height: 1rem;
width: 1rem;
}

#djDebug .djdt-community-panel {
padding: 1.5em;
}

#djDebug .djdt-community-panel h2 {
font-size: 2em;
}

#djDebug .djdt-community-panel p {
font-size: 1em;
margin: 0 0 1em 0;
}

#djDebug .djdt-community-panel .djdt-community-description {
font-size: 1em;
margin: 0 0 1.5em 0;
}

#djDebug .djdt-community-panel ul {
list-style-type: disc;
padding-left: 1.25em;
margin: 1em 0;
}

#djDebug .djdt-community-panel li {
margin: 0.5em 0;
}

#djDebug .djdt-community-panel a {
font-weight: bold;
font-size: 1em;
}

#djDebug .djdt-community-panel a:hover {
text-decoration: underline;
}
48 changes: 48 additions & 0 deletions debug_toolbar/templates/debug_toolbar/panels/community.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% load i18n %}

<div class="djdt-community-panel">
<h2>
{% translate "Community & Contribution" %}
</h2>
<p>
{% translate "Want to contribute to Django Debug Toolbar? Get involved in our community!" %}
</p>

<ul>
<li>
<a href="https://github.com/django-commons/django-debug-toolbar/discussions" target="_blank">
{% translate "Join Discussions" %}
</a>
</li>
<li>
<a href="https://github.com/django-commons/django-debug-toolbar/issues" target="_blank">
{% translate "View Issues" %}
</a>
</li>
<li>
<a href="https://django-debug-toolbar.readthedocs.io/en/latest/contributing.html" target="_blank">
{% translate "Contribution Guide" %}
</a>
</li>
</ul>
<hr>
<br>
<h2>
{% translate "Django Debug Toolbar Documentation" %}
</h2>
<p class="djdt-community-description">
{% translate "Explore the official documentation to learn more about Django Debug Toolbar." %}
</p>
<ul>
<li>
<a href="https://django-debug-toolbar.readthedocs.io/en/latest/" target="_blank">
{% translate "Read Documentation" %}
</a>
</li>
<li>
<a href="https://django-debug-toolbar.readthedocs.io/en/latest/resources.html" target="_blank">
{% translate "How to Use Django Debug Toolbar" %}
</a>
</li>
</ul>
</div>
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Pending
* 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.

6.0.0 (2025-07-22)
------------------
Expand Down
1 change: 1 addition & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ default value is::
'debug_toolbar.panels.alerts.AlertsPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.community.CommunityPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
'debug_toolbar.panels.profiling.ProfilingPanel',
]
Expand Down
7 changes: 7 additions & 0 deletions docs/panels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ Signals

List of signals and receivers.

Community
~~~~~~~~~

.. class:: debug_toolbar.panels.community.CommunityPanel

A panel that provides links to the Django Debug Toolbar community.

Redirects
~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions tests/panels/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class HistoryViewsTestCase(IntegrationTestCase):
"AlertsPanel",
"CachePanel",
"SignalsPanel",
"CommunityPanel",
"ProfilingPanel",
}

Expand Down