Skip to content

Instantly share code, notes, and snippets.

@joaquinacuna
Created November 4, 2020 16:06
Embed
What would you like to do?
# auth.urls.py
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import GraphQLView
urlpatterns = [
# ...
path("graphql", csrf_exempt(GraphQLView.as_view(graphiql=True))),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment