Metadata-Version: 2.4
Name: djangocms-render-context
Version: 1.0.0
Summary: Render context into template.
Author-email: Zdeněk Böhm <zdenek.bohm@nic.cz>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://gitlab.nic.cz/djangocms-apps/djangocms-render-context
Project-URL: Repository, https://gitlab.nic.cz/djangocms-apps/djangocms-render-context.git
Project-URL: Changelog, https://gitlab.nic.cz/djangocms-apps/djangocms-render-context/-/blob/main/CHANGELOG.md
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django CMS
Classifier: Framework :: Django CMS :: 4.1
Classifier: Framework :: Django CMS :: 5.0
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: django-cms<6,>=4.0
Requires-Dist: django-filer~=3.4
Requires-Dist: pyyaml
Requires-Dist: requests
Provides-Extra: quality
Requires-Dist: ruff; extra == "quality"
Requires-Dist: mypy; extra == "quality"
Requires-Dist: types-PyYAML; extra == "quality"
Requires-Dist: types-requests; extra == "quality"
Provides-Extra: test
Requires-Dist: testfixtures; extra == "test"
Requires-Dist: responses; extra == "test"

# DjangoCMS Render Context

The plugin for the [Django CMS](https://www.django-cms.org/) 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`:

```python
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:

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


## License

BSD-3-Clause
