Skip to content

Commit 8d6fe93

Browse files
committed
Use common middleware in channels2 example
1 parent 2e1ddfd commit 8d6fe93

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

examples/django_channels2/django_channels2/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
}
2222
]
2323

24+
MIDDLEWARE = [
25+
'django.middleware.common.CommonMiddleware',
26+
]
2427

2528
ROOT_URLCONF = "django_channels2.urls"
2629
ASGI_APPLICATION = "graphql_ws.django.routing.application"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from django.urls import path
22
from graphene_django.views import GraphQLView
33

4-
urlpatterns = [path("graphql", GraphQLView.as_view(graphiql=True))]
4+
urlpatterns = [path("graphql/", GraphQLView.as_view(graphiql=True))]

0 commit comments

Comments
 (0)