LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
To ensure Django REST Framework (DRF) views only return JSON response… (#1191)
Jaseem Jas8e525d49b0b3
diff --git a/backend/backend/settings/base.py b/backend/backend/settings/base.pyindex 33b301dd5..7e884a8f6 100644--- a/backend/backend/settings/base.py+++ b/backend/backend/settings/base.py@@ -412,6 +412,12 @@ STATIC_ROOT = os.path.join(BASE_DIR, "static")DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"REST_FRAMEWORK = {+ "DEFAULT_RENDERER_CLASSES": [+ "rest_framework.renderers.JSONRenderer",+ ],+ "DEFAULT_PARSER_CLASSES": [+ "rest_framework.parsers.JSONParser",+ ],"DEFAULT_PERMISSION_CLASSES": [], # TODO: Update once auth is figured"TEST_REQUEST_DEFAULT_FORMAT": "json","EXCEPTION_HANDLER": "middleware.exception.drf_logging_exc_handler",