Skip to content

Instantly share code, notes, and snippets.

@nidhinp
Created September 2, 2019 14:02
Show Gist options
  • Save nidhinp/10c20b96979ca20a7936f248cad4beec to your computer and use it in GitHub Desktop.
Save nidhinp/10c20b96979ca20a7936f248cad4beec to your computer and use it in GitHub Desktop.
from graphene_django.views import GraphQLView
from django.contrib import admin
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [
path('admin/', admin.site.urls),
path('graphql/', csrf_exempt(GraphQLView.as_view())),
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment