Settings

class alliance_platform.pdf.settings.AlliancePlatformPDFSettingsType[source]

Settings for the PDF package of the Alliance Platform.

These can be set in the Django settings file under the ALLIANCE_PLATFORM key:

ALLIANCE_PLATFORM = {
    "PDF": {
        # settings go here
    }
}
WHITELIST_DOMAINS: list[str] | None[source]

List of domains to whitelist in PDF renderer. You do not need to include the domain the site is served from. In dev the Vite dev server is automatically included. Defaults to allow Google fonts: ["//fonts.googleapis.com", "//fonts.gstatic.com"]. If updating this setting it is suggested that you keep the Google font domains whitelisted. If using S3AsyncUploadStorage and you load resources from there (eg. render images), make sure to add the storage bucket domain