Replace hardcoded localhost URLs (http://127.0.0.1:8000) in API root endpoint documentation with request.build_absolute_uri() calls. This makes the API documentation URLs environment-agnostic and ensures they reflect the actual domain/host being used to access the API, improving portability across development, staging, and production environments. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| asgi.py | ||
| settings.py | ||
| urls.py | ||
| views.py | ||
| wsgi.py | ||