django-shortcodes
This package provides WordPress shortcode support for Django templates. It is based on code by Mark Steadman.
Support for different shortcodes are generated by parsers. The package currently includes a parser for YouTube videos. Additional parsers can be submitted for inclusion at the package’s issue tracker.
Installation
Use pip install django-shortcodes or clone the Git repository.
Usage
{% load shortcodes_filters %}
{{ text|shortcodes|safe }}
Settings
Vimeo
SHORTCODES_VIMEO_HEIGHT: Default height for Vimeo videos.
SHORTCODES_VIMEO_WIDTH: Default width for Vimeo videos.
YouTube
SHORTCODES_YOUTUBE_JQUERY: Boolean whether the jquery.flash plugin is available.
SHORTCODES_YOUTUBE_HEIGHT: Default height for YouTube videos.
SHORTCODES_YOUTUBE_WIDTH: Default width for YouTube videos.
Metadata
Release files for django-shortcodes 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-shortcodes-0.4.0.tar.gz | 4.2 kB | Without provenance | Details for django-shortcodes-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_shortcodes-0.4.0-py2-none-any.whl | Python 2 | none | any | Details for django_shortcodes-0.4.0-py2-none-any.whl |
Total release size: 10.5 kB
Release files / django-shortcodes-0.4.0.tar.gz
| Download URL | django-shortcodes-0.4.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b0db35f04edcb45705048ea040db97b8cdf1e746589fb93c033923fad599e47
|
|
BLAKE2b-256 checksum How to use checksums |
eec2a36528fcc47088046d16bd3ecef3dca2e03fbd2490424bcf4297ee08aa8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_shortcodes-0.4.0-py2-none-any.whl
| Download URL | django_shortcodes-0.4.0-py2-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
a9dbaac37b3c8ab06e643e063d356e6ce4794a72f381aa6a2567c7ed8c89e7e9
|
|
BLAKE2b-256 checksum How to use checksums |
fed53f967552d496e9d41368ec72d06dbbf319115e69c2d515fda065145116e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-shortcodes 0.4.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.
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.