Skip to content

Instantly share code, notes, and snippets.

@joaquinacuna
Created November 4, 2020 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquinacuna/ae4f366767d3fe2af28a080693315160 to your computer and use it in GitHub Desktop.
Save joaquinacuna/ae4f366767d3fe2af28a080693315160 to your computer and use it in GitHub Desktop.
# 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