A Mezzanine app to integrate dpaste, a Django pastebin.
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size mezzanine-dpaste-1.0.3.tar.gz (19.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|