NotifyMe is a Django-based software that offers temporary notifications to users. It allows users to receive messages or alerts for a limited time, providing real-time updates and reminders.
When it comes to usage, the middleware adds an instance of a temporary storage class called notifications to your request. You can add a notification by calling the 'request.notifications.add' method. Optionally, you can provide a string containing tags that represent HTML classes for the message.
Displaying temporary notifications is also easy, as you can use the predefined template or write custom ones. Notifications are marked to be cleared when the storage instance is iterated, but if you want to avoid their deletion, you can set the "request.notifications.used" attribute to False after iterating.
Django-notify offers three different temporary storage classes that you can use to store notification messages. These classes are the session.SessionStorage class, the cookie.CookieStorage class, and the fallback.FallbackStorage class. The default temporary storage class is the fallback.FallbackStorage class.
In case you want to write your storage backend, you can subclass the BaseStorage class in django_notify.storage.base and write your _get and _store methods. The process is easy and Django-notify offers guidelines to help you out.
Overall, Django-notify is an efficient tool to handle temporary notifications in your Django applications. The application is easy to install, easy to use, and offers several storage backends that you can leverage to improve your application's performance.
Version 1.1.2: N/A