A rich-text-tinymce-widget with model field for Django.
Requirements
Django >= 1.3
Installation
pip install django-rte
Configuration
First include rte in your INSTALLED_APPS:
INSTALLED_APPS = (
...
'rte',
...
)
Now you can either go with the default base configuration or you can define your own. Either way you can always overwrite attributes by passing a config dict to either the model field or the widget. If you want to set a different base configuration you just need to place a new config file 'rte/tiny.config.js'.
Language is automatically detected for you, should you need to explicitly set a different language you need to do this in the field or widget config dict and not in the 'rte/tine.config.js' file.
Examples
Example model usage:
from rte import RTEField
class MyModel(models.Model):
content = RTEField()
Example Widget usage:
from rte import TinyWidget
def MyForm(forms.Form):
content = forms.TextField(widget=TinyWidget(config={'language': 'en'}))
Metadata
Release files for django-rte 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-rte-0.4.0.tar.gz | 1.1 MB | Without provenance | Details |
Release files / django-rte-0.4.0.tar.gz
| Download URL | django-rte-0.4.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fd817c038a8ffbda54b813900aabad5ce00f24ac915cf8607e6bb6b59a03a73
|
|
BLAKE2b-256 checksum How to use checksums |
89e91eedf360f693859514ae0e56514ca9063eeda90e32851c1f1baa1e40a9ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-rte 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.