mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-19 04:32:25 +03:00
Update readme with Django path
This commit is contained in:
parent
de98fb5812
commit
04ad5771d0
|
@ -38,12 +38,12 @@ GRAPHENE = {
|
||||||
We need to set up a `GraphQL` endpoint in our Django app, so we can serve the queries.
|
We need to set up a `GraphQL` endpoint in our Django app, so we can serve the queries.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
from graphene_django.views import GraphQLView
|
from graphene_django.views import GraphQLView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# ...
|
# ...
|
||||||
url(r'^graphql$', GraphQLView.as_view(graphiql=True)),
|
path('graphql', GraphQLView.as_view(graphiql=True)),
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user