coalition.core.views

Core application views.

Attributes

logger

Functions

get_react_assets(→ dict[str, str])

Read React's asset-manifest.json to get the correct filenames with hashes

home(→ django.http.HttpResponse)

robots_txt(→ django.http.HttpResponse)

Serve the robots.txt file to prevent search engine indexing

health_check(→ django.http.JsonResponse)

Dedicated health check endpoint for the Django backend.

Module Contents

coalition.core.views.logger[source]
coalition.core.views.get_react_assets() dict[str, str][source]

Read React’s asset-manifest.json to get the correct filenames with hashes

coalition.core.views.home(request: django.http.HttpRequest) django.http.HttpResponse[source]
coalition.core.views.robots_txt(request: django.http.HttpRequest) django.http.HttpResponse[source]

Serve the robots.txt file to prevent search engine indexing

coalition.core.views.health_check(request: django.http.HttpRequest) django.http.JsonResponse[source]

Dedicated health check endpoint for the Django backend.

This endpoint checks: 1. Application status 2. Database connectivity 3. Available memory and system resources

Returns a JSON response with health status information.