graphene-django/graphene_django/tests/urls_inherited.py
tschilling c2818c85e0
Switch from re_path to path.
The DEFAULT_GRAPHQL_URL had to change because it doesn't take into
account the APPEND_SLASH setting from within Django.
2021-12-12 11:18:37 -06:00

14 lines
266 B
Python

from django.urls import path
from ..views import GraphQLView
from .schema_view import schema
class CustomGraphQLView(GraphQLView):
schema = schema
graphiql = True
pretty = True
urlpatterns = [path("graphql/inherited/", CustomGraphQLView.as_view())]