Skip to content

MechanisM/django-pencil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-pencil

Integration Pencil WYSIWYG into Django.

Requirements

  • sorl-thumbnail

Installation

settings.py

INSTALLED_APPS = (
    ...
    'sorl.thumbnail',
    'django_pencil',
)

urls.py

urlpatterns = patterns('',
    ...
    url(r'^pencil/', include('django_pencil.urls', namespace='pencil')),
)

Download Pencil to your STATIC_DIR

Download jQuery and jQuery Form Plugin to your STATIC_DIR

Syncdb

manage.py syncdb

Use widgets

Add widget to admin.py

from django_pencil.widgets import PencilTextarea

class PageAdminForm(forms.ModelForm):
    
    class Meta:
        model = Page
        widgets = {'content':PencilTextarea}

About

Integration Pencil WYSIWYG with Django.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published