graphene-django/graphene_django/tests/urls_inherited.py

14 lines
272 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
2018-07-20 02:51:33 +03:00
2017-07-11 13:18:31 +03:00
class CustomGraphQLView(GraphQLView):
schema = schema
graphiql = True
pretty = True
2018-07-20 02:51:33 +03:00
urlpatterns = [url(r"^graphql/inherited/$", CustomGraphQLView.as_view())]