This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A small Django package allowing a dictionary to be passed to contrib.messages. The dictionary is then pre-rendered and passed to the real contrib.message function.

Dependencies

A recent version of Django is required, but there are no third-party dependencies for this package.

Installation

Use your favorite Python installer to install it from PyPI:

$ pip install django-dictmessages

Or get the source from the application site:

$ hg clone https://bitbucket.org/mhurt/django-dictmessages
$ cd django-dictmessages
$ python setup.py install

Configuration

Add 'dictmessages' to your INSTALLED_APPS setting like this:

INSTALLED_APPS = {
  ...
  'dictmessages',
}

Getting Started

Wherever you would normally make use of the django.contrib.messages API you can use this package instead:

# Before...
from django.contrib import messages

# After...
from dictmessages import messages

Since dictmessages is a simply a wrapper around the original functionality, you can continue to use it in the same way:

from dictmessages import messages
...
...

# This still works the same...
messages.success(request, 'Awesome! You totally nailed that, dude.')

But, if you’d like to something a little more fancy…:

from dictmessages import messages
...
...

message_dictionary = dict(
    object='Awesome!', activity='You totally nailed that, dude.')

messages.success(requestion, message_dictionary)
Release History

Release History

1.0.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_dictmessages-1.0.0-py2.py3-none-any.whl (5.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Feb 28, 2015
django-dictmessages-1.0.0.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Feb 28, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting