Skip to main content

Rich text editor for Django

Project description

A rich-text-tinymce-widget with model field for Django.


Django >= 1.3


pip install django-rte


First include rte in your INSTALLED_APPS:


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.


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'}))

Project details

Download files

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

Files for django-rte, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size django-rte-0.4.0.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page