class storage.session.SessionStorage This class stores all messages inside of the request’s session. Therefore it requires Django’s
class storage.base.Message When you loop over the list of messages in a template, what you get are instances of the Message
class storage.cookie.CookieStorage This class stores the message data in a cookie (signed with a secret hash to prevent manipulation)
class storage.base.BaseStorage To write your own storage class, subclass the BaseStorage class in django
get_messages(request) [source] In your template, use something like:
class views.SuccessMessageMixin Adds a success message attribute to
class storage.fallback.FallbackStorage This class first uses CookieStorage, and falls back to using SessionStorage
add_message(request, level, message, extra_tags='', fail_silently=False) [source]
get_success_message(cleaned_data) cleaned_data is the cleaned data from the form which is used for string formatting