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, this plugin takes care of the following steps (and using their numbering):
- #1. Install the Package
- #3. Install the App
- #4. Add the URLs
- #5. Add the Middleware
- #6. Configure Internal IPs
- to include
127.0.0.1
- to include
But you still need to:
- #2. Check for Prerequisites
- like settings for static files and templates
- #6. Configure Internal IPs
- if you require IPs other than 127.0.0.1, set them in
INTERNAL_IPS
in your settings
- if you require IPs other than 127.0.0.1, set them in
- #7. 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.2.tar.gz
.
File metadata
- Download URL: django_plugin_django_debug_toolbar-0.3.2.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 | 6d163d983ac7e1a2d82148918e1cee4c046fc13aa809ce32eb10ac0fffd0dd30 |
|
MD5 | 7eaedd6a63122eac6bf613c95432fe56 |
|
BLAKE2b-256 | afe362d5934958a30c9334324256dc1d1fa704fbd8275a81e4ad3aef150775b9 |
Provenance
The following attestation bundles were made for django_plugin_django_debug_toolbar-0.3.2.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.2.tar.gz
- Subject digest:
6d163d983ac7e1a2d82148918e1cee4c046fc13aa809ce32eb10ac0fffd0dd30
- Sigstore transparency entry: 148535350
- Sigstore integration time:
- Predicate type:
File details
Details for the file django_plugin_django_debug_toolbar-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: django_plugin_django_debug_toolbar-0.3.2-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 | a6f6bb96655af4c4bb1375f47bcb7a217f51fc473618740e61adb986af2f9b98 |
|
MD5 | b64263f6f8c3dbba714dde7f1887f8ef |
|
BLAKE2b-256 | 35096d02c2300d9bba748765311389d2fe98ecfe098b0b425ff8a3552aafa339 |
Provenance
The following attestation bundles were made for django_plugin_django_debug_toolbar-0.3.2-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.2-py3-none-any.whl
- Subject digest:
a6f6bb96655af4c4bb1375f47bcb7a217f51fc473618740e61adb986af2f9b98
- Sigstore transparency entry: 148535352
- Sigstore integration time:
- Predicate type: