Skip to main content

Django-minipub is a MINImalist PUBlication control system for Django.

Project description

Django-minipub
===============

.. image:: https://img.shields.io/pypi/v/django-minipub.svg
:target: https://pypi-hypernode.com/pypi/django-minipub/
:alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/django-minipub.svg
:target: https://pypi-hypernode.com/pypi/django-minipub/
:alt: Number of PyPI downloads

.. image:: https://travis-ci.org/richardbarran/django-minipub.svg?branch=master
:target: https://travis-ci.org/richardbarran/django-minipub

.. image:: https://coveralls.io/repos/github/richardbarran/django-minipub/badge.svg?branch=master
:target: https://coveralls.io/github/richardbarran/django-minipub?branch=master

Django-minipub is a **mini**-malist **pub**-lication control system for Django.

Let's take an example: you have a 'news' application, with an
Article model. In the admin interface, minipub will add this fieldset:

.. image:: docs/img/minipub-fieldset.png

All articles will then have the following 3 fields:

- status: usually ``draft`` or ``published``.
- start: start date.
- end: end date; optional.

Articles will only be visible in the public website **if** they are ``published``
**and** today's date is between the start and end dates.

In addition, we have a fieldset for showing various read-only status fields:

.. image:: docs/img/minipub-status-fieldset.png

These can be of use for tracking changes to an Article.

And that's it... Minipub is just a few fields on a Model Mixin, together with plenty of code - in the models,
views, admin and sitemap - to make the best use of it, that you will hopefully reuse
again and again throughout a project.

What can I use it for?
----------------------
Here are some examples of Minipub at work:

- `Minutes of the meetings of an association <http://www.saphra.org.uk/meetings/>`_.
- `Controlling the publication of the Events at a well-known racetrack <http://www.silverstone.co.uk/events/>`_.
- `Controlling when job offers are displayed <http://www.ipglobal-ltd.com/en/about/careers/>`_.

Alternatives
------------
There are several similar projects that take slightly different approaches
to publication control; usually they introduce more sophisticated control. A well-known
example is `django-reversion <https://github.com/etianen/django-reversion>`_.

Minipub is a very basic publication control tool, but works well on several production
websites. Its author has found it be a decent compromise between a tool that's too
basic to be useful, and too complex to be understood by its intended end users.

Installation and usage
----------------------
.. image:: https://readthedocs.org/projects/django-minipub/badge/?version=latest
:target: http://django-minipub.readthedocs.org/en/latest/?badge=latest
:alt: Documentation Status
Please take a look at
`the documentation <http://django-minipub.readthedocs.org/en/latest/index.html>`_ on ReadTheDocs.

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

django-minipub-1.0.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file django-minipub-1.0.tar.gz.

File metadata

File hashes

Hashes for django-minipub-1.0.tar.gz
Algorithm Hash digest
SHA256 99f6e67dc2c9992cb5a4e1fcf8efa34243a5472d21640056de6d688576f8a248
MD5 4fc56cc74a9e5eed61bdb7e02a68628f
BLAKE2b-256 efa79fbe3e60a8aacfd6023c1f9a9608a992f4668deb2df2d0d4d99068c3c0b5

See more details on using hashes here.

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