Skip to main content

django-srcdoc

PyPI - Version PyPI - Python Version


Table of Contents

Installation

  1. Install django-srcdoc from PyPI:

    pip install django-srcdoc
    
  2. Add django-srcdoc to INSTALLED_APPS in your settings.py:

    INSTALLED_APPS = [
       # ...
       'django_srcdoc',
       # ...
    ]
    

Usage

After installation, use the {% srcdoc %} tag much like the {% filter %} tag. A brief example:

<iframe srcdoc="{% srcdoc %}{{ some_html_from_your_project }}{% endsrcdoc %}"></iframe>

HTML to be escaped could be written by hand, passed in as a variable, or added with an {% include %} tag (or any other method you like).

The tag will escape HTML per the iframe specification.

License

django-srcdoc is distributed under the terms of the MIT license.

Metadata

Release files for django-srcdoc 1.0.2

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-srcdoc 1.0.2
File Size Uploaded Provenance Actions
django_srcdoc-1.0.2.tar.gz 4.2 kB Without provenance Details for django_srcdoc-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-srcdoc 1.0.2
File Interpreter ABI Platform Actions
django_srcdoc-1.0.2-py3-none-any.whl Python 3 none any Details for django_srcdoc-1.0.2-py3-none-any.whl

Total release size: 7.7 kB

Release files / django_srcdoc-1.0.2.tar.gz

Download URL django_srcdoc-1.0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
42ae28116e154eaf1a558e480ae37e7569034e3152afd88b0df88a0e55d8ed72
BLAKE2b-256 checksum
How to use checksums
d63a2342b3e2f89b672b6d08b79449446597960c14a6fca0fc6a0ce4b04164a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"serenity","libc":{"lib":"glibc","version":"2.43"},"name":"Solus","version":"4.9"},"implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"7.2.6-360.current"}} HTTPX2/2.13.1

Release files / django_srcdoc-1.0.2-py3-none-any.whl

Download URL django_srcdoc-1.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b1569b5ae155de024ddc80152c2c5c1557a7f98b51759ce3282f0194fb4992f
BLAKE2b-256 checksum
How to use checksums
674e6355490187e9cd0d426ac1a1bff94e6c79df6642c5094e758944cb1bb1dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"serenity","libc":{"lib":"glibc","version":"2.43"},"name":"Solus","version":"4.9"},"implementation":{"name":"CPython","version":"3.14.7"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.6.4 25 Aug 2026","python":"3.14.7","system":{"name":"Linux","release":"7.2.6-360.current"}} HTTPX2/2.13.1

Security for django-srcdoc 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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