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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4014d9a35f5ab4b0c473f0fa20263628c4234552dc556abe1d35b5de92becaaa |
|
MD5 | e125c8e236e530c69902e05cdb5f331e |
|
BLAKE2b-256 | 200077bcad63948f484a5e76b11df55a80833ffcb22472390753034cf86fbcd4 |
Close
Hashes for django_graphiql_debug_toolbar-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9aa71a0146d0704899ed6f9605dc35332df456418029798b4c6355287e47b96 |
|
MD5 | c6548bf6db3a355c8a65eb7f740785df |
|
BLAKE2b-256 | 2b78103ab37bfbf73b7fd43007b5637ca5d5248f9171b689075ee82c2f49dd82 |