These docs are a work-in-progress and are currently undergoing a major rewrite!
Forge Pro

Request log

The request log stores a local history of HTTP requests and responses during forge work (Django runserver).

The request history will make it easy to see redirects, 400 and 500 level errors, form submissions, API calls, webhooks, and more.

Requests can be re-submitted by clicking the "replay" button.

Django request log

Installation

# settings.py
INSTALLED_APPS += [
    "forgepro.requestlog",
]

MIDDLEWARE = MIDDLEWARE + [
    # ...
    "forgepro.requestlog.RequestLogMiddleware",
]

The default settings can be customized if needed:

# settings.py
REQUESTLOG_IGNORE_URL_PATHS = [
    "/sw.js",
    "/favicon.ico",
    "/admin/jsi18n/",
]
REQUESTLOG_KEEP_LATEST = 50
REQUESTLOG_URL = "/requestlog/"