Django Debug Toolbar for GraphiQL IDE
Project description
Django Debug Toolbar for GraphiQL IDE
Dependencies
Python ≥ 3.4
Django ≥ 1.11
Installation
Install last stable version from Pypi.
pip install django-graphiql-debug-toolbar
See the documentation for further guidance on setting Django Debug Toolbar.
Add graphiql_debug_toolbar to your INSTALLED_APPS settings:
INSTALLED_APPS = [
...
'debug_toolbar',
'graphiql_debug_toolbar',
]
Replace the Django Debug Toolbar middleware with the GraphiQL Debug Toolbar one.
MIDDLEWARE = [
...
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
'graphiql_debug_toolbar.middleware.DebugToolbarMiddleware',
...
]
The Debug Toolbar is shown only if your IP is listed in the INTERNAL_IPS setting (you can change this logic with the SHOW_TOOLBAR_CALLBACK option).
INTERNAL_IPS = ['127.0.0.1', '...']
Dockerize INTERNAL_IPS
import socket
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS += [ip[:-1] + '1' for ip in ips]
Limitations
Panels rendering is not supported in multiprocess environment.
Credits to @jazzband / django-debug-toolbar.
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
Close
Hashes for django-graphiql-debug-toolbar-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b106f6fdc8192e5da228c3a9af94e75eabde017be715f60f1eab18cee5d618a6 |
|
MD5 | bb965e1b2c75304eca047ce7bfaaae8e |
|
BLAKE2b-256 | c5a4d7d687300e0bdacd83410e5970ecbc18a5986b54b3a9b37515b1f7ba296e |
Close
Hashes for django_graphiql_debug_toolbar-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c7d211486cca436dfe3c59215ceed08dbd4a55a05be476de4d68bbd6b8a1132 |
|
MD5 | 6cf8c43457467b2d121b4dd1272b791f |
|
BLAKE2b-256 | 68a1800f70261d624e37ccf6f2e1d8849041202cff46f2cc2a24ee8d21c0188e |