Skip to main content

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

Project description

Latest PyPI version CI Status https://codecov.io/github/richardbarran/django-minipub/coverage.svg?branch=master

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

Let’s explain it with an example: you have a ‘news’ application, with an Article model. In the admin interface, Minipub will add this fieldset:

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:

docs/img/minipub-status-fieldset.png

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

And that’s it… Minipub is simply 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:

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.

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

Documentation Status

Please take a look at the documentation 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.9.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

django_minipub-1.9-py2.py3-none-any.whl (8.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django-minipub-1.9.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for django-minipub-1.9.tar.gz
Algorithm Hash digest
SHA256 915cfe76a87aa9ae902a32af64f4a99eaa6c8ec5362f112e11c9d6e6773c6728
MD5 4232b2a710bcce0ef7fae18e4e4edee3
BLAKE2b-256 d8087531615fdfaf7d0368264d42aef6ad6bddda8b844e548f28af604324fc0f

See more details on using hashes here.

File details

Details for the file django_minipub-1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: django_minipub-1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9

File hashes

Hashes for django_minipub-1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e5b0bdeca43a0e1ee75bac17981b7bd7e9dfd2bc7223bece2ce9f41c01f6c8f3
MD5 726f637220cc05ad802bc341d91b59dc
BLAKE2b-256 3bfbd79760942dc6754d969584dac401870bc05c4d93f49fe3dce1387a33ef1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page