From ce370a9fc631772f98710c9c890a7abb59714290 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Sun, 26 Apr 2026 13:16:15 +0530 Subject: [PATCH] feat: use raw json responses instead of templates --- backend/config/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/config/settings.py b/backend/config/settings.py index ab6b144..1787a8c 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -78,6 +78,8 @@ MIDDLEWARE = [ "django_structlog.middlewares.RequestMiddleware", ] +REST_FRAMEWORK = {"DEFAULT_RENDERER_CLASSES": ("rest_framework.renderers.JSONRenderer",)} + ROOT_URLCONF = "config.urls" WSGI_APPLICATION = "config.wsgi.application"