A Django app that adds graphiql explorer to the graphiql view
Project description
graphene graphiql explorer
😎This django app adds the graphiql explorer the graphene's graphiql view.
installation
pip install https://github.com/creimers/graphene-graphiql-explorer/archive/master.zip
Yes, I will eventually publish this on pypi.
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.
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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db00e192118897c78611f10d8b8c2062b6297a2e964b0c004b2ecee1f14d4165 |
|
MD5 | 5f9e849bd1fb257a29a7085e542e7417 |
|
BLAKE2b-256 | 8e7f558b9e8ad8acd2404059179063266565841f36515f652ab59e684835905a |
Close
Hashes for graphene_graphiql_explorer-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09fa61cfa8b44f989b471f333e1cba1eda08855fee8bf03fd446f305e4268b14 |
|
MD5 | 7064736774a87db9babafdba486c8b0c |
|
BLAKE2b-256 | b2676ff1bf8fa2531b071f6e077e184ab60925ad724e69371809837c776f83b2 |