skip to navigation
skip to content

mezzanine-dpaste 1.1.0

A Mezzanine app to integrate dpaste, a Django pastebin.

Latest Version: 2.1.1

MezzPaste is a Mezzanine app that integrates the Django pastebin dpaste into the Mezzanine framework.


First install the package and dependencies using pip:

pip install mptt dpaste mezzanine-dpaste

Add the packages to your INSTALLED_APPS, it is important to list mezzpaste above the dpaste app:

    # ...


Include the mezzpaste.urls in your Mezzanine project’s, above the mezzanine.urls include:

urlpatterns += patterns('',
    ("^pastes/", include('mezzpaste.urls'))
    ("^", include("mezzanine.urls")),

Add a cron job to purge expired pastes:

30 * * * * /path/to/virtualenv/bin/python /path/to/project/ cleanup_snippets > /dev/null

To enable syntax highlighting, generate a pygments CSS file and include it in your base.html:

pygmentize -S default -f html -a highlight > pygments.css

If you want to include a link in a Navigation menu, create a Page in Mezzanine with the same URL as the mezzpaste URL you added to your project’s

For additional configuration settings, see the dpaste Documentation.

File Type Py Version Uploaded on Size
mezzanine-dpaste-1.1.0.tar.gz (md5) Source 2014-04-22 22KB