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.1.0.tar.gz (12.4 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.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for djangocms_render_context-1.1.0.tar.gz
Algorithm Hash digest
SHA256 028fa1c8118daf98828a87f541ca30c479ba8b437d6f541f937e5d8487f49f24
MD5 36cbcf34706c042ea743388ffd22e0dc
BLAKE2b-256 41736050154e41e98dff64eef0dd7aa73e18489cfe04c525aa0995078fd88c28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for djangocms_render_context-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03eab7b83267124cc8a9e60e18dad64c19b4df66e44655a270de81ad195b6e11
MD5 fb7962f11b8f8a10a34925a5979d4b49
BLAKE2b-256 080738ae09fb470c4f2539776c8e9e817e8d7e19ee1087c0e78b612adfb40880

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