A wrapper on top of the django messages which comes with some styles, icons, and middleware to attache messages to AJAX responses.
JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
easy_messages
examples
.gitignore
CHANGES.TXT
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Django Easy Messages

Requires Backbone.js, underscore.js, and jQuery

Installation:

  1. Add easy_messages to INSTALLED_APPS in settings.py.

  2. Add easy_messages.middleware.AjaxMessaging to MIDDLEWARE_CLASSES in settings.py.

  3. Add the following lines to your base template in the desired locations:

    {% include "messages/list.html" %}
    <script type="text/javascript" src="{{ STATIC_URL }}js/messages.js"></script>
    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/messages.css" />
    

Note also that there's also a messages.less file included if you'd prefer to use .less instead of css.

See examples.views.py for usage in views and API calls.