Code Monkey home page Code Monkey logo

graphene-graphiql-explorer's Introduction

graphene graphiql explorer

PyPI

๐Ÿ˜Ž 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.

Development

Release

python -m build

python -m twine upload -r testpypi dist/*

python -m twine check dist/*

graphene-graphiql-explorer's People

Contributors

creimers avatar dependabot[bot] avatar mikedizon avatar n-i-x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

graphene-graphiql-explorer's Issues

No root query / Empty explorer

Hi,

I tried to installed your package, followed setup.

Issue :

No root query appearing and the explorer is empty.

image

Django console :

[26/Oct/2021 13:18:21] "POST /graphql/ HTTP/1.1" 403 2519 Forbidden (CSRF token missing or incorrect.): /graphql/

Config:
python 3.9.1
Django==3.2.8
graphene==2.1.9
graphene-django==2.15.0
graphene-graphiql-explorer==0.0.1
graphql-core==2.3.2
graphql-relay==2.0.1

Any idea ?

Upgrading graphiql to >1.0.0

Versions of GraphiQL that are >1.0.0 have the ability to enable a tab for headers, it would be nice to be able to use this with an updated version.

I'm happy to make the change and create a PR, but would greatly benefit from some basic instructions on building so that I can test that it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.