Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Limited WordPress shortcode support for Django

Project Description

# django-template-shortcodes

THIS IS EXPERIMENTAL STUFF. Don’t use it. Probably.

This package provides some [WordPress shortcode]( support for Django templates. It is heavily based on [AGoodId’s version of django-shortcodes]( (in turn based on, as well as [WP Export Parser]( for the regex parts, lifted from WordPress.

## Supported shortcodes (sort of):

  • [caption caption=”Foo bar”]<img src=”” alt=”” />[/caption]
  • [caption]<img src=”” alt=”” /> Foo bar[/caption]
  • [youtube=]
  • [youtube url=””]
  • [gmaps url=””]
  • [vimeo url=””]
  • [iframe url=””]

## Installation

Install via pip: pip install django-template-shortcodes Or clone the [Git repository](

## Usage

Parse shortcodes:

{% load shortcodes_filters %} {{ text|shortcodes|safe }}

Remove shortcodes (completely, including contents inside):

{% load shortcodes_filters %} {{ text|removeshortcodes|safe }}

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(14.6 kB) Copy SHA256 Hash SHA256
Egg 2.7 Jun 19, 2014
(9.3 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Jun 19, 2014
(5.7 kB) Copy SHA256 Hash SHA256
Source None Jun 19, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate