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-mezz
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.