Django plugin that configures the Django Debug Toolbar
Project description
django-plugin-django-debug-toolbar
Django plugin that installs and configures the Django Debug Toolbar
Installation
First configure your Django project to use DJP.
Then install this plugin in the same environment as your Django application.
pip install django-plugin-django-debug-toolbar
Usage
Looking at Django Debug Toolbar's installation instructions - and using their numbering - this plugin takes care of the following steps:
-
- Install the Package
-
- Install the App
-
- Add the URLs
-
- Add the Middleware
-
- Configure Internal IPs
But you still need to:
-
- Check for Prerequisites
- like settings for static files and templates
-
- Configure Internal IPs
- if you require IPs other than 127.0.0.1, set them in
INTERNAL_IPS
in your settings
-
- Disable the toolbar when running tests (optional)
- perhaps do this by disabling djp when testing
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd django-plugin-django-debug-toolbar
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_plugin_django_debug_toolbar-0.3.1.tar.gz
.
File metadata
- Download URL: django_plugin_django_debug_toolbar-0.3.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 656c0e478c262ba13f861d036981ea497538293ca1ae317624230f7f7603d7c5 |
|
MD5 | 4a2054107a1dd94511fabfe768c3843e |
|
BLAKE2b-256 | 562078e9febfc3ecdc4697cd8b7559a9ac0b52b9bc4ca625568aca790e31a493 |
Provenance
The following attestation bundles were made for django_plugin_django_debug_toolbar-0.3.1.tar.gz
:
Publisher:
publish.yml
on tomviner/django-plugin-django-debug-toolbar
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
django_plugin_django_debug_toolbar-0.3.1.tar.gz
- Subject digest:
656c0e478c262ba13f861d036981ea497538293ca1ae317624230f7f7603d7c5
- Sigstore transparency entry: 148532898
- Sigstore integration time:
- Predicate type:
File details
Details for the file django_plugin_django_debug_toolbar-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: django_plugin_django_debug_toolbar-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a76e86030f887359770f1f22053ea90eae99cb5e6c49c9fe0edbbf45cae4645 |
|
MD5 | e934fc765618353f11e11f7862945093 |
|
BLAKE2b-256 | dd3876ec4b1e1c94a868c43cc2622cdb07c9ebb82506a3720b33936ecae95be7 |
Provenance
The following attestation bundles were made for django_plugin_django_debug_toolbar-0.3.1-py3-none-any.whl
:
Publisher:
publish.yml
on tomviner/django-plugin-django-debug-toolbar
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
django_plugin_django_debug_toolbar-0.3.1-py3-none-any.whl
- Subject digest:
1a76e86030f887359770f1f22053ea90eae99cb5e6c49c9fe0edbbf45cae4645
- Sigstore transparency entry: 148532901
- Sigstore integration time:
- Predicate type: