django-srcdoc
Table of Contents
Installation
-
Install django-srcdoc from PyPI:
pip install django-srcdoc -
Add django-srcdoc to
INSTALLED_APPSin yoursettings.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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| django_srcdoc-1.0.2.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_srcdoc-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|