Closed
Description
- What is the current behavior?
When running the site using Uvicorn the graphiql page does not load but the rest of the Django site works fine
[32mINFO[0m: 127.0.0.1:52463 - "GET /static/graphene_django/graphiql.js HTTP/1.1" 404
Not Found: /static/graphene_django/graphiql.js
- If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
-
Install Django with a graphene endpoint and Uvicorn
-
Run
uvicorn MYSITE.asgi:application
in the command line replacing MYSITE with your site name -
Navigate to the Graphene endpoint (graphiql terminal page)
-
Check the command line output
- What is the expected behavior?
Expected behavior should be the same as when running python manage.py runserver
you get a POST for the graphql
[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
- What is the motivation / use case for changing the behavior?
Making graphene-django compatible with ASGI
-
Please tell us about your environment:
- Version: Python 3.82
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
- Platform: Windows 10
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)
Posted Stackoverflow question a month ago here with no answer so I suspect it is a bug