Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphene_graphiql_explorer-0.0.1.tar.gz (1.1 MB view hashes)

Uploaded Source

Built Distribution

graphene_graphiql_explorer-0.0.1-py2.py3-none-any.whl (1.1 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page