The GraphQLView and its async version allow overriding the template file. However, the loading of the template is incorrect, resulting in JSON.parse("") // empty string
, because the variable is already replaced.
In the view we see the following code:
try:
template = Template(render_to_string("graphql/graphiql.html"))
except TemplateDoesNotExist:
template = Template(self.graphql_ide_html)
The loading in the try section, erronously calls render_to_string and sticks the result into a Template class. However, render_to_string already renders the entire template, replacing its variables.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too