graphene-django/graphene_django/tests/urls_inherited.py
2018-02-01 16:39:06 +02:00

15 lines
278 B
Python

from django.conf.urls import url
from ..views import GraphQLView
from .schema_view import schema
class CustomGraphQLView(GraphQLView):
schema = schema
graphiql = True
pretty = True
urlpatterns = [
url(r'^graphql/inherited/$', CustomGraphQLView.as_view()),
]