Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Easily use Quill.js in your django admin.

Project description

# django-quill

[![Build Status](](
[![Latest Version](](

Easily use [Quill.js]( in your django admin.

This project is heavily inspired by [django-ckeditor](

Requires django 1.7.

![Admin Preview](/.screenshots/admin.png?raw=true)

## Quick start

1. Install the package from pypi

pip install django-quill

2. Add "quill" to your INSTALLED_APPS setting like this:


## Usage

from django.db import models
from quill.fields import RichTextField

class MyModel(models.Model):
content = RichTextField()
content2 = RichTextField(config='basic')

If you want to support image uploads, your admin needs to extend from `quill.admin.QuillAdmin`:

from quill.admin import QuillAdmin

class MyAdmin(QuillAdmin):

### Customizing

To customize this app, extend ``apps.QuillConfig`` and modify whatever you need. For example, to add a new toolbar:

from quill.apps import QuillConfig

class MyQuillConfig(QuillConfig):
my_toolbar = dict(full, toolbar_template='quill/toolbars/my_toolbar.html')

To customize the extensions of the images that can be uploaded:

from quill.apps import QuillConfig

class MyQuillConfig(QuillConfig):
allowed_image_extensions = ['jpeg', 'gif']

### Provided Toolbars

There are two toolbars that come with this package:

1. Full (default): Provides basic font style and size selection, bold, italics, underline, strikethrough, text color, background color, lists, links, and images.
2. Basic: Provides bold, italic, underline, lists, and links.

## Development

There are several dependencies on npm that are required before building django-quill:

$ npm install

### Auto Compile JS

$ make watch

### Running Tests

$ make test

### Building JS

$ make build


1. Better documentation.
2. More tests.
3. Better support for using outside of the admin.

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-quill, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size django-quill-0.0.4.tar.gz (208.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page