skip to navigation
skip to content

django-pagedown 0.0.2

A django app that allows the easy addition of Stack Overflow's 'PageDown' markdown editor to a django form field

Latest Version: 0.1.1

Django Pagedown

A django app that allows the easy addition of [Stack Overflow's "Pagedown" Markdown editor]( to a django form field, whether in a custom app or the Django Admin


![Screenshot of Django Admin with Pagedown initialised]( "A screenshot of Pagedown in Django's admin")


#### Installation ####

- Install via pip: `pip install -e` for the latest version, otherwise 'pip install django-pagedown'
- Add `pagedown` to your `INSTALLED_APPS`

Note that this package will install a cloned copy of the Pagedown library from [](

#### Usage ####

If you want to use the pagedown editor in a django admin field, there are numerous possible approaches:

To use it in **all** `TextField`'s in you admin form:

from pagedown.widgets import AdminPagedownWidget
from django.db import models
class FooModelAdmin(models.ModelAdmin):
formfield_overrides = {
models.TextField: {'widget': AdminPagedownWidget },

Alternatively, to only use it on particular fields, first create a form (in ``):

from pagedown.widgets import AdminPagedownWidget
from django import forms
from models import FooModel

class FooModelForm(forms.ModelForm):
a_text_field = forms.CharField(widget=AdminPagedownWidget())
another_text_field = forms.CharField(widget=AdminPagedownWidget())

class Meta:
model = FooModel

and in your ``:

from forms import FooModelForm
class FooModelAdmin(models.ModelAdmin):
form = FooModelForm

#### Notes ####

* There are two widgets, `AdminPageDownWidget` and `PageDownWidget`. The only difference is that `AdminPageDownWidget` includes extra CSS to make the preview area and input pretty in the django admin. If you are using the editor for your own app, you will need to supply CSS to do this.  
File Type Py Version Uploaded on Size
django-pagedown-0.0.2.tar.gz (md5) Source 2012-10-29 50KB
  • Downloads (All Versions):
  • 33 downloads in the last day
  • 415 downloads in the last week
  • 1725 downloads in the last month