mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-29 21:13:44 +03:00
15 lines
278 B
Python
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()),
|
||
|
]
|