Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mobolic/django-shortcodes
A Django application to parse WordPress shortcodes.
https://github.com/mobolic/django-shortcodes
django-application python wordpress
Last synced: 16 days ago
JSON representation
A Django application to parse WordPress shortcodes.
- Host: GitHub
- URL: https://github.com/mobolic/django-shortcodes
- Owner: mobolic
- License: other
- Created: 2012-02-28T04:50:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T22:22:01.000Z (over 7 years ago)
- Last Synced: 2024-10-12T07:21:27.364Z (about 1 month ago)
- Topics: django-application, python, wordpress
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 13
- Watchers: 4
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=================
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.