8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[32mINFO[0m: 127.0.0.1:52463 - "GET /static/graphene_django/graphiql.js HTTP/1.1" 404 Not Found: /static/graphene_django/graphiql.js
Install Django with a graphene endpoint and Uvicorn
Run uvicorn MYSITE.asgi:application in the command line replacing MYSITE with your site name
uvicorn MYSITE.asgi:application
Navigate to the Graphene endpoint (graphiql terminal page)
Check the command line output
Expected behavior should be the same as when running python manage.py runserver you get a POST for the graphql
python manage.py runserver
[13/May/2020 19:53:01] "GET /static/graphene_django/graphiql.js HTTP/1.1" 200 2958 [13/May/2020 19:53:01] "POST /graphql/ HTTP/1.1" 200 24772
Making graphene-django compatible with ASGI
Please tell us about your environment:
asgiref==3.2.7 Django==3.0.5 django-graphiql==0.4.4 graphene==2.1.8 graphene-django==2.9.0 uvicorn==0.11.3
Posted Stackoverflow question a month ago here with no answer so I suspect it is a bug
The text was updated successfully, but these errors were encountered:
@ccsv have you run ./manage.py collectstatic?
./manage.py collectstatic
Sorry, something went wrong.
On the GraphiQL page open console and check the requests that it makes-- does it return the js/css static files? If not use @jkimbo's suggestion.
console
@ccsv did you find a solution ? I am facing the same problem and couldn't find any solution. Thanks
fix same issue here in new versions
No branches or pull requests
When running the site using Uvicorn the graphiql page does not load but the rest of the Django site works fine
Install Django with a graphene endpoint and Uvicorn
Run
uvicorn MYSITE.asgi:application
in the command line replacing MYSITE with your site nameNavigate to the Graphene endpoint (graphiql terminal page)
Check the command line output
Expected behavior should be the same as when running
python manage.py runserver
you get a POST for the graphqlMaking graphene-django compatible with ASGI
Please tell us about your environment:
asgiref==3.2.7
Django==3.0.5
django-graphiql==0.4.4
graphene==2.1.8
graphene-django==2.9.0
uvicorn==0.11.3
Posted Stackoverflow question a month ago here with no answer so I suspect it is a bug
The text was updated successfully, but these errors were encountered: