Skip to content

Instantly share code, notes, and snippets.

@Bijitakc
Created July 2, 2022 19:04
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 Bijitakc/e4143806a3070616f3a5534ab7a3b017 to your computer and use it in GitHub Desktop.
Save Bijitakc/e4143806a3070616f3a5534ab7a3b017 to your computer and use it in GitHub Desktop.
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from graphene_file_upload.django import FileUploadGraphQLView
from .schema import schema
urlpatterns = [
path('graphql/', csrf_exempt(FileUploadGraphQLView.as_view(graphiql=True, schema=schema)))
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment