Skip to content

Commit

Permalink
docs: Remove mention about having to enable subscriptions in the docs (
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 authored Oct 19, 2024
1 parent 5ff6250 commit 0a07d8e
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions docs/guide/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,7 @@ application = AuthGraphQLProtocolTypeRouter(
)
```

Also, ensure that you enable subscriptions on your AsgiGraphQLView in `MyProject.urls.py`:

```python
...

urlpatterns = [
...
path(
'graphql/',
AsyncGraphQLView.as_view(
schema=schema,
graphiql=settings.DEBUG,
subscriptions_enabled=True,
),
),
...
]

```

Note, django-channels allows for a lot more complexity. Here we merely cover the basic framework to get subscriptions to run on Django with minimal effort. Should you be interested in discovering the far more advanced capabilities of Dango channels, head over to [channels docs](https://channels.readthedocs.io)
Note, django-channels allows for a lot more complexity. Here we merely cover the basic framework to get subscriptions to run on Django with minimal effort. Should you be interested in discovering the far more advanced capabilities of Django channels, head over to [channels docs](https://channels.readthedocs.io)

## Setup local testing

Expand Down

0 comments on commit 0a07d8e

Please sign in to comment.