This software consists of a basic user notification system based on cookies. It notifies users through cookies and requires no complex setup.
Cnotes is fundamentally different from other solutions because it stores all messaging data in memory and signed cookies. As a result, it can send tamper-proof notifications to both authenticated and anonymous users without accessing the database.
The installation process of cnotes is incredibly straightforward. Firstly, add the cnotes directory to your Python path, and then add cnotes.middleware.CnotesHandlerMiddleware to the MIDDLEWARE_CLASSES variable in your settings.py file.
After installation, adding new messages or retrieving existing ones is as simple as a few lines of Python code. You can access cnotes from the request object, and then use cnotes.add() to add new messages, or cnotes.get_and_clear() to retrieve and clear any existing messages.
In cases where you need to get messages without clearing them, you can use the cnotes.get() method. Additionally, a settings variable called CNOTES_AUTO_CLEAR can be set to True or False, which determines if the middleware will clear messages automatically after they are made available on non-ajax request objects.
Overall, cnotes is an incredibly lightweight and user-friendly software plugin for Django that provides a secure and straightforward user notification system.
Version 0.3.1: N/A