graphene-django/graphene_django/tests/urls_inherited.py

15 lines
278 B
Python
Raw Normal View History

2017-07-11 13:18:31 +03:00
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()),
]