Skip to main content

TODO

Project description

Run tests for django-item-messages coveralls badge python: 3.7, 3.8, 3.9,3.9,3.10,3.11 django: 2.2, 3.0, 3.1, 3.2, 4.0, 4.1, 4.2

Description

Item-messages allows you to add item specific messages which are rendered beneath the related item in an admin changelist view.

Item messages are permanent within a session and can be added, updated or removed. This makes them also useful for long running asynchronious background processes.

Installation

Install from pypi.org:

pip install django-item-messages

Setup

Add item_messages to your installed apps:

INSTALLED_APPS = [
    ...
    'item_messages',
    ...
]

Add the item_messages’ middleware class:

MIDDLEWARE = [
    ...
    'item_messages.middleware.ItemMessageMiddleware',
    ...
]

Note: The item-messages middelware class have to be listed after the session’s middelware class.

Add item_messages’ context processor:

TEMPLATES = [
    {
        ...
        'OPTIONS': {
            'context_processors': [
                ...
                'item_messages.context_processors.item_messages',
                ...
            ],
        },
    },
]

Usage

TODO

Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-item-messages-0.1.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

django_item_messages-0.1-py3-none-any.whl (219.5 kB view hashes)

Uploaded Python 3

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