Skip to content

www_proxy

konigle.www_proxy

relay(request, path=None)

Proxy a Django request to another server and return the response.

Handles: - Both GET and POST requests - Normal cookies (persistent with expiration) - Session cookies (no expiration) - Request headers - Query parameters

PARAMETER DESCRIPTION
request

Django HttpRequest object

path

Path to append to WWW_SERVER_URL (optional, defaults to

TYPE: Optional[str] DEFAULT: None

RETURNS DESCRIPTION

Django HttpResponse object with content and cookies from

original server

Settings required

WWW_SERVER_URL: Base URL of the original server normally *.konigle.net when using the Konigle website CMS.