Skip to content

simonprast/graphene-graphiql-explorer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphene graphiql explorer

PyPI

😎This django app adds the graphiql explorer the graphene's graphiql view.

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.

About

graphiql explorer for django graphene's graphiql view

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 69.2%
  • HTML 28.3%
  • CSS 2.3%
  • Python 0.2%