skip to navigation
skip to content

Not Logged In

django-cked 0.1.0

CKEditor and elFinder integration for Django Framework.

CKEditor and elFinder integration for Django Framework.

Provides a RichTextField and CKEditorWidget with upload and browse support.

Installation

pip install django-cked

or

pip install -e hg+https://bitbucket.org/CWTeam/django-cked#egg=django-cked

Demo

We have prepared a demo project is available on the link https://github.com/DOOMer/django-cked-demo to demonstrate the application.

Configuration

Add cked to your INSTALLED_APPS setting.

Then set ELFINDER_OPTIONS in your settings:

ELFINDER_OPTIONS = {
    ## required options
    'root': os.path.join(PROJECT_ROOT, 'media', 'uploads'),
    'URL': '/media/uploads/',
}

And add CKEd URL include to your project urls.py file:

url(r'^cked/', include('cked.urls')),

Settings

Usage

Model field

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


class Entry(models.Model):
    text = RichTextField()

Widget

from django import forms
from cked.widgets import CKEditorWidget

class MyForm(forms.Form):
    text = forms.CharField(widget=CKEditorWidget)

NOTE: If you are using custom forms, dont’r forget to include form media to your template:

{{ form.media }}
 
File Type Py Version Uploaded on Size
django-cked-0.1.0.zip (md5) Source 2014-09-20 1MB
  • Downloads (All Versions):
  • 81 downloads in the last day
  • 271 downloads in the last week
  • 859 downloads in the last month