Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 776 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 776 Bytes

django-graphql-playground

Apollo GraphQL Playground as a Django view

Screenshot

Install

$ pip install django-graphql-playground

Configure

# settings.py

INSTALLED_APPS = [
    ...
    'graphql_playground',
]
# urls.py

urlpatterns = [
    ...
    path('playground/', GraphQLPlaygroundView.as_view(endpoint="<your_graphql_endpoint>")),
]

You can pass in any valid GraphQL Playground property as an argument to GraphQLPlaygroundView.as_view. A full list of supported properties can be found here

See example/ for more details.