Skip to main content

Django Gotenberg is a Django app that provides a render_to_pdf function to render Django templates to PDF responses using a Gotenberg instance.

Static files referenced via {% static %} tags in the template are resolved and sent to Gotenberg alongside the rendered HTML so that images, stylesheets, and other assets are embedded correctly in the generated PDF.

Quick start

  1. Run a Gotenberg instance:

    docker run --rm -p 3000:3000 gotenberg/gotenberg:8
  2. Add GOTENBERG_HOST to your Django settings:

    GOTENBERG_HOST = 'http://localhost:3000'
  3. Use render_to_pdf in your views:

    from django_gotenberg import render_to_pdf
    
    def my_view(request):
        return render_to_pdf(request, 'my_template.html', {'key': 'value'})
    
    # With a download filename:
    def my_download_view(request):
        return render_to_pdf(request, 'my_template.html', filename='report.pdf')

Configuration

All configuration is done via Django settings:

Setting

Description

Default

GOTENBERG_HOST

URL of the Gotenberg instance (required)

—

GOTENBERG_TIMEOUT

Request timeout in seconds

30.0

GOTENBERG_USERNAME

HTTP basic auth username

—

GOTENBERG_PASSWORD

HTTP basic auth password

—

Metadata

Release files for django-gotenberg 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-gotenberg 0.2.0
File Size Uploaded Provenance
django_gotenberg-0.2.0.tar.gz 3.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-gotenberg 0.2.0
File Interpreter ABI Platform
django_gotenberg-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / django_gotenberg-0.2.0.tar.gz

Download URL django_gotenberg-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0cbe22f780d18694ebc2a6f1c293b3a96fb31549a7601c8ef04a7dde2eba7acd
BLAKE2b-256 checksum
How to use checksums
ee8e0d726ea6df1e111e429565d11aa55577a226d6104763b1f3dd2ca0afd6fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

Release files / django_gotenberg-0.2.0-py3-none-any.whl

Download URL django_gotenberg-0.2.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34e80b64210e4a18a5f25647d9868774b228841501fcc7006089c99f5a3891d7
BLAKE2b-256 checksum
How to use checksums
19f756371394c059917cbb3505cdea67fbe963b3b9a32eabe5ec1bd5c1c890e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

Security for django-gotenberg 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_gotenberg-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page