django-extended-messages

Extend version of django.contrib.messages
Download

django-extended-messages Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Anton Yevzhakov
  • Publisher web site:
  • http://anber.ru

django-extended-messages Tags


django-extended-messages Description

Extend version of django.contrib.messages django-extended-messages is a Django plugin that adds sticky messages to django.contrib.messages.Installation:1. Add *'django-extended-messages'* directory to your Python path2. Add *'django.contrib.messages'* to your INSTALLED_APPS3. Add *'django.contrib.messages.middleware.MessageMiddleware'* to your MIDDLEWARE_CLASSES4. Add *'django.contrib.messages.context_processors.messages'* to your TEMPLATE_CONTEXT_PROCESSORS5. Add *MESSAGE_STORAGE = 'extended_messages.storage.session.SessionStorage'* to your settings.py6. Add *extended_messages.urls* in your urls.pyConfiguration:*STICKY_FROM_THE_LEVEL*Usage: import extended_messages as messages messages.warning(request, 'Your account expires in three days.', sticky=True) Requirements: · Python · Django


django-extended-messages Related Software