Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GraphQL-python-archive/django-graphiql
[DEPRECATED | Use graphene-django package] Integrate GraphiQL easily into your Django project
https://github.com/GraphQL-python-archive/django-graphiql
Last synced: about 1 month ago
JSON representation
[DEPRECATED | Use graphene-django package] Integrate GraphiQL easily into your Django project
- Host: GitHub
- URL: https://github.com/GraphQL-python-archive/django-graphiql
- Owner: GraphQL-python-archive
- Created: 2015-10-08T02:53:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T07:30:55.000Z (over 8 years ago)
- Last Synced: 2024-05-21T18:11:51.750Z (7 months ago)
- Language: CSS
- Homepage:
- Size: 436 KB
- Stars: 35
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-graphql - django-graphiql - Integrate GraphiQL easily into your Django project. (Libraries / Python Libraries)
- awesome-graphql - django-graphiql - Integrate GraphiQL easily into your Django project. (Libraries / Python Libraries)
README
# Django GraphiQL [![PyPI version](https://badge.fury.io/py/django-graphiql.svg)](https://badge.fury.io/py/django-graphiql)
Django GraphiQL is a library for integrating [GraphiQL](https://github.com/graphql/graphiql) inside your Django project, so you can test your [GraphQL](https://github.com/graphql-python/graphql-core) schemas easily.
This library versioning go in partity with GraphiQL.
## Installing
For installing this library just run in your favorite shell:
```bash
pip install django-graphiql
```## Configuring
In settings.py add `'django_graphiql'` into `INSTALLED_APPS`, so it will look like
```python
INSTALLED_APPS = [
# ...
'django_graphiql',
# ...
]
```And then, add into your urls.py:
```python
urlpatterns = [
# Your other urls...
url(r'^graphiql', include('django_graphiql.urls')),
]
```If you want to configure the default query, just set `GRAPHIQL_DEFAULT_QUERY` in your settings
to the desired value.