-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions are not allowed. #7
Comments
Hi @masarliev, you must make sure that the graphql url of your project defines it using the view graphene_django_extras.views.ExtraGraphQLView, something like that from graphene_django_extras.views import ExtraGraphQLView
urlpatterns = [
# .....
url(r'^graphql', ExtraGraphQLView.as_view(graphiql=True, schema=schema), name='graphql'),
] Please can you please let me know if the error was corrected. Right now I am working on an update of this module and its documentation |
Thanks for the fast replay. I am still getting the same error. Later today or tomorrow I can provide simple application |
graphql-python/graphql-ws#8 |
https://github.com/masarliev/subs-example |
Hi @masarliev , I was reviewing your project and apparently it lacks the definition of the file asgi.py, and it's mandatory for Channles. |
for this I was using docker python:3.6 image and install all required packages from requirements.txt |
defining a custom
then it can be passed to your GraphQL view (say):
|
I followed the example and I got
Subscriptions are not allowed. You will need to either use the subscribe function or pass allow_subscriptions=True
What am I missing?
The text was updated successfully, but these errors were encountered: