A Django app that adds graphiql explorer to the graphiql view
Project description
graphene graphiql explorer
😎 This django app adds the graphiql explorer to graphene's graphiql view.
The graphiql version used is 1.9.10.
Installation
pip install graphene_graphiql_explorer
Setup
Add graphene_graphiql_explorer
to your INSTALLED_APPS
.
Override the default graphene graphiql template in your urls.py
:
from graphene_django.views import GraphQLView
GraphQLView.graphiql_template = "graphene_graphiql_explorer/graphiql.html"
urlpatterns = [
# ...
url(
r"^graphql/$",
GraphQLView.as_view(graphiql=True),
name="graphql",
),
# ...
]
Don't forget to collect those static files.
Brought to you by superservice international.
Project details
Release history Release notifications | RSS feed
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 graphene_graphiql_explorer-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813ebd2c85f17adcff3d645a1c2839e4a65f2956efa23562df5d01e1fb8d30d7 |
|
MD5 | 6d959777c24901aa8cfc8d8da91d362d |
|
BLAKE2b-256 | e715a2154a7b89ac74ef3aef1de7a0d61a37e12771562a423e741bc88cf12d83 |
Close
Hashes for graphene_graphiql_explorer-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe5d2b6aa5c4677f461a1fc5098ddfc0de5678551c5fbc535d4b699f3a543715 |
|
MD5 | e5ed6ffcdfd0d526b57e62e5fb3fed0e |
|
BLAKE2b-256 | dcf063dbc6394f6b388c80aae2e6e8903dbbb07db204e83333cae01433e2c169 |