TODO
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d82237277eb95cde371e6ecd5b9006f406f46af5a6bc26397a2d412a9e51c089 |
|
MD5 | e6eeeba3f6a768f090a3d0e66cf92de4 |
|
BLAKE2b-256 | e2d1f08a69af81c65747f2817c925c73a0e362606cc98b192127ac8900485d60 |
Provenance
File details
Details for the file django_item_messages-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_item_messages-0.1-py3-none-any.whl
- Upload date:
- Size: 219.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9c166370975e5859614265063c338fa86a6153a6ff45643db5a502ca524fe2 |
|
MD5 | 6eb6aaa758e7c00123c9d993ed3f7ffe |
|
BLAKE2b-256 | 7670a23039b39083b5fd821c6c88e58a771ed69d45fc97c1784c0d026435b0d0 |