wow*_*in2 4 python django graphene-python graphene-django
我正在尝试设置 Graphene,但在浏览器中打开 http://localhost:8000/graphql/ 时出现以下异常:
TemplateDoesNotExist at /graphql/
graphene/graphiql.html
Request Method: GET
Request URL: http://localhost:8000/graphql/
Django Version: 3.2.10
Run Code Online (Sandbox Code Playgroud)
添加了整个设置、添加到 URL、配置架构、查询和突变。但还是不行。甚至不记得曾经需要为石墨烯配置模板。
看起来忘记在 中添加以下内容settings.py,因此它没有完全配置,至少对于调试模式而言:
INSTALLED_APPS = [
# ...
"graphene_django",
# ...
]
Run Code Online (Sandbox Code Playgroud)