Merge pull request #635 from davidjb/master

Update install docs for Django 2.x
This commit is contained in:
Paul Hallett 2019-05-13 18:12:07 +01:00 committed by GitHub
commit 65d15cc3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,16 +30,16 @@ Add ``graphene_django`` to the ``INSTALLED_APPS`` in the ``settings.py`` file of
]
We need to add a graphql URL to the ``urls.py`` of your Django project:
We need to add a ``graphql`` URL to the ``urls.py`` of your Django project:
.. code:: python
from django.conf.urls import url
from django.urls import path
from graphene_django.views import GraphQLView
urlpatterns = [
# ...
url(r'^graphql$', GraphQLView.as_view(graphiql=True)),
path("graphql", GraphQLView.as_view(graphiql=True)),
]
(Change ``graphiql=True`` to ``graphiql=False`` if you do not want to use the GraphiQL API browser.)