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",
]
Add into site urls.py:
from django.conf.urls.i18n import i18n_patterns
from django.views.i18n import JavaScriptCatalog
from django.urls import path
urlpatterns = [
...
] + i18n_patterns(
path('jsi18n/<slug:packages>/', JavaScriptCatalog.as_view(), name='jsi18n'),
)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangocms_render_context-1.2.1.tar.gz.
File metadata
- Download URL: djangocms_render_context-1.2.1.tar.gz
- Upload date:
- Size: 308.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c67c731a0af710c02f1a83cb115d11b528b68d23614b0df5e2c04bfee72d9362
|
|
| MD5 |
cf6d80fa8a881aef5722b8e7ca10820e
|
|
| BLAKE2b-256 |
b75ad00ad7ed70f838a1fc53db857ce9bd325dc207f70e28eb4ac656e404a405
|
File details
Details for the file djangocms_render_context-1.2.1-py3-none-any.whl.
File metadata
- Download URL: djangocms_render_context-1.2.1-py3-none-any.whl
- Upload date:
- Size: 321.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b682d4b4b28e174ac7f1840ee5b24353c36e5ceb3852fcefbe9b77b3c3d186b
|
|
| MD5 |
239da939fc16d01cedfbc6d456af0321
|
|
| BLAKE2b-256 |
ace94d4af9a42c0a81af2b6eff8c4b148179a3452220732983f8528837d3b4a8
|