Forge Pro

forge-requestlog

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 += [
    "forgerequestlog",
]

MIDDLEWARE = MIDDLEWARE + [
    # ...
    "forgerequestlog.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/"

Tailwind CSS

This package is styled with Tailwind CSS, and pairs well with forge-tailwind.

If you are using your own Tailwind implementation, you can modify the "content" in your Tailwind config to include any Forge packages:

// tailwind.config.js
module.exports = {
  content: [
    // ...
    ".venv/lib/python*/site-packages/forge*/**/*.{html,js}",
  ],
  // ...
}

If you aren't using Tailwind, and don't intend to, open an issue to discuss other options.