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 follow the dpaste instructions for integrating dpaste into an existing Django project.

Then install this package using pip:

pip install mezzanine-dpaste

Add the package to your INSTALLED_APPS, above the dpaste app:

INSTALLED_APPS = (
    # ...

    'mezzpaste',
    'dpaste',
)

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 RichTextPage in Mezzanine with the same URL as the dpaste URL you added to urls.py.

For example, if you added ('^pastes/', include('dpaste.urls')) to your base urls.py, you would need to create a RichTextPage with the name Pastes. If instead you added ('^foo/pastes/', include('dpaste.urls')), you would create a Pastes page under a Foo page.

Project details


Download files

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

Source Distribution

mezzanine-dpaste-1.0.3.tar.gz (19.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page