Skip to main content

Render context into template.

Project description

DjangoCMS Render Context

The plugin for the Django CMS content management system. The plugin displays the context in the template. The context can be specified directly in JSON format. Or the context can be used as a media file. Or the context can be loaded from a URL. The template can be entered directly or selected from a list defined in the settings in the DJANGOCMS_RENDER_CONTEXT_TEMPLATES constant.

Supported source data formats (mimetype):

  • csv (text/csv)
  • json (application/json)
  • yaml (application/yaml)
  • xml (application/xml)
  • ods (application/vnd.oasis.opendocument.spreadsheet)

Install

Install the package from pypi.org.

pip install djangocms-render-context

Add into INSTALLED_APPS in your site settings.py:

INSTALLED_APPS = [
    ...
    "easy_thumbnails",
    "filer",
    "djangocms_render_context",
]

Extra settings

This value can be defined in settings.

  • DJANGOCMS_RENDER_CONTEXT_TEMPLATES - List of templates that the plugin can use.

For example:

DJANGOCMS_RENDER_CONTEXT_TEMPLATES = (
    ("", ""),
    ("plugin.html", "Plugin"),
    ("schedule.html", "Schedule"),
)

License

BSD-3-Clause

Project details


Download files

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

Source Distribution

djangocms_render_context-1.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_render_context-1.0.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_render_context-1.0.0.tar.gz.

File metadata

  • Download URL: djangocms_render_context-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for djangocms_render_context-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b8c09cc601256a553761ba1593a35fa0028bbd3718e61c6327124f688525ab65
MD5 1c8b0fd888373bd0cd42a0c2bdb79293
BLAKE2b-256 dff07d10db09de5df13448ca2978cae07e96f064fc1d5413ecdd9e30fb71884f

See more details on using hashes here.

File details

Details for the file djangocms_render_context-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_render_context-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd6372b06865d04285e1e3e28e3613cc865bdc294f73d88d4b503feeadc7119
MD5 42bac003ff928884d8747a0b6fbb3b1b
BLAKE2b-256 1d64d40538643cf56a9659605dabfd4602705fa1bd41f0c9400e08045a320d7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page