Code


Version 11 (modified by tobias, 5 years ago) (diff)

core -> contrib app

Session Messages

This page is meant to evaluate some of the different session/cookie message/notification engines out there for potential inclusion in Django as a contrib app. It is a work in progress so please contribute (your notification engine here) or other changes as you see fit.

For more information see:

Criteria

Criteria necessary for inclusion in the core:

  • Support message passing for anonymous users
  • Avoid database/cache queries if possible
  • Support larger messages that don't fit in a cookie (> 4kb)
  • Don't lose messages if they're not displayed to the user (lazy message loading)
  • Signs cookie-based messages
  • Provide a standard, intuitive interface so that reusable apps can provide feedback related to the current session
  • Needs community approval/support
  • Needs to be the "de facto" standard implementation

Available Options

Name and LinkAnonymous user supportMinimal DB AccessSupports messages > 4kbLazy loads messagesSigned cookiesStandard interface
django-notifyyesyesyesyesyesyes
django-flashyessometimessometimesnoyesno
django-flash-statusyessometimessometimesnoyesyes
django-cnotesyesyesnonoyesyes
  • yes means yes, always
  • sometimes means under certain conditions (e.g., an engine might support large messages if the session is used, and avoid DB access if a cookie is used, but not both)
  • no means no, not in the current implementation

Please update this table with new options or corrected information as necessary.