Skip to main content

A Mezzanine app to integrate dpaste, a Django pastebin.

Project description

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

Usage

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:

INSTALLED_APPS = (
    # ...

    'mptt',
    'mezzpaste',
    'dpaste',
)

Include the mezzpaste.urls in your Mezzanine project’s urls.py, 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/manage.py 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 urls.py.

For additional configuration settings, see the dpaste Documentation.

Project details


Release history Release notifications

History Node

2.1.1

History Node

2.1.0

History Node

2.0.0

History Node

1.1.1

This version
History Node

1.1.0

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mezzanine-dpaste-1.1.0.tar.gz (22.8 kB) Copy SHA256 hash SHA256 Source None Apr 22, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page