Skip to main content

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.

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)

Source distribution for django-shortcodes 0.4.0
File Size Uploaded
django-shortcodes-0.4.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-shortcodes 0.4.0
File Interpreter ABI Platform
django_shortcodes-0.4.0-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

1 release file

0.2.0

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