Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prikhi/mezzanine-dpaste
A Mezzanine app integrating dpaste, a Djano pastebin.
https://github.com/prikhi/mezzanine-dpaste
django dpaste mezzanine pastebin python
Last synced: about 2 months ago
JSON representation
A Mezzanine app integrating dpaste, a Djano pastebin.
- Host: GitHub
- URL: https://github.com/prikhi/mezzanine-dpaste
- Owner: prikhi
- License: gpl-3.0
- Created: 2014-04-20T11:16:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-16T01:39:36.000Z (over 10 years ago)
- Last Synced: 2024-10-11T23:22:14.201Z (3 months ago)
- Topics: django, dpaste, mezzanine, pastebin, python
- Language: CSS
- Size: 254 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==========
MezzPaste
==========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(``crontab -e``)::
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(``highlight`` is the default value)::# yourproject/settings.py
MEZZPASTE_PYGMENTS_CSS = 'highlight'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`_.
.. _dpaste: https://github.com/bartTC/dpaste
.. _dpaste Documentation: http://dpaste.readthedocs.org/en/latest/settings.html
.. _Mezzanine: http://mezzanine.jupo.org/