Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 55229a8

Browse files
follow django patterns
1 parent 508e696 commit 55229a8

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

graphql_api/config.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

graphql_api/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from services import ServiceException
2828
from services.redis_configuration import get_redis_connection
2929

30-
from .config import graphql_config
3130
from .schema import schema
3231

3332
log = logging.getLogger(__name__)
@@ -189,6 +188,7 @@ def __exit__(self, exc_type, exc_value, exc_traceback):
189188
class AsyncGraphqlView(GraphQLAsyncView):
190189
schema = schema
191190
extensions = [QueryMetricsExtension]
191+
introspection = getattr(settings, "GRAPHQL_INTROSPECTION_ENABLED", False)
192192

193193
def get_validation_rules(
194194
self,
@@ -379,7 +379,7 @@ def get_client_ip(self, request):
379379
return ip
380380

381381

382-
BaseAriadneView = AsyncGraphqlView.as_view(**graphql_config)
382+
BaseAriadneView = AsyncGraphqlView.as_view()
383383

384384

385385
async def ariadne_view(request, service):

0 commit comments

Comments
 (0)