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 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 dpaste.urls in your Mezzanine project’s urls.py, above mezzanine.urls:
urlpatterns += patterns('',
("^pastes/", include('dpaste.urls.dpaste')),
("^", 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
You can specify the CSS class used by the templates via the MEZZPASTE_PYGMENTS_CSS setting:
MEZZPASTE_PYGMENTS_CSS = 'codehilite'
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.
Metadata
Release files for mezzanine-dpaste 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mezzanine-dpaste-2.1.1.tar.gz | 19.1 kB | Without provenance | Details for mezzanine-dpaste-2.1.1.tar.gz |
Release files / mezzanine-dpaste-2.1.1.tar.gz
| Download URL | mezzanine-dpaste-2.1.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2a963ec62610ac74d7357ab9eaa0c10eadb7e5da1e5e4873586870a4bbcd959
|
|
BLAKE2b-256 checksum How to use checksums |
2dafb2da6708c2b5d23aa9ece51c396b11d657ccfdc88fbf07dd99e03b53096a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mezzanine-dpaste 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.