We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 865c953 + ce9d989 commit 65d15ccCopy full SHA for 65d15cc
docs/installation.rst
@@ -30,16 +30,16 @@ Add ``graphene_django`` to the ``INSTALLED_APPS`` in the ``settings.py`` file of
30
]
31
32
33
-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:
34
35
.. code:: python
36
37
- from django.conf.urls import url
+ from django.urls import path
38
from graphene_django.views import GraphQLView
39
40
urlpatterns = [
41
# ...
42
- url(r'^graphql$', GraphQLView.as_view(graphiql=True)),
+ path("graphql", GraphQLView.as_view(graphiql=True)),
43
44
45
(Change ``graphiql=True`` to ``graphiql=False`` if you do not want to use the GraphiQL API browser.)
0 commit comments