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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-item-messages-0.1.tar.gz.

File metadata

  • Download URL: django-item-messages-0.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for django-item-messages-0.1.tar.gz
Algorithm Hash digest
SHA256 d82237277eb95cde371e6ecd5b9006f406f46af5a6bc26397a2d412a9e51c089
MD5 e6eeeba3f6a768f090a3d0e66cf92de4
BLAKE2b-256 e2d1f08a69af81c65747f2817c925c73a0e362606cc98b192127ac8900485d60

See more details on using hashes here.

Provenance

File details

Details for the file django_item_messages-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_item_messages-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d9c166370975e5859614265063c338fa86a6153a6ff45643db5a502ca524fe2
MD5 6eb6aaa758e7c00123c9d993ed3f7ffe
BLAKE2b-256 7670a23039b39083b5fd821c6c88e58a771ed69d45fc97c1784c0d026435b0d0

See more details on using hashes here.

Provenance

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