{ "info": { "author": "Mike Hurt", "author_email": "mike@mhtechnical.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django dictmessages\r\n===================\r\n\r\nA small Django package allowing a dictionary to be passed to contrib.messages.\r\nThe dictionary is then pre-rendered and passed to the real contrib.message\r\nfunction.\r\n\r\n\r\n\r\nDependencies\r\n------------\r\n\r\nA recent version of Django is required, but there are no third-party\r\ndependencies for this package.\r\n\r\n\r\nInstallation\r\n------------\r\n\r\nUse your favorite Python installer to install it from PyPI::\r\n\r\n $ pip install django-dictmessages\r\n\r\n\r\nOr get the source from the application site::\r\n\r\n $ hg clone https://bitbucket.org/mhurt/django-dictmessages\r\n $ cd django-dictmessages\r\n $ python setup.py install\r\n\r\n\r\nConfiguration\r\n-------------\r\n\r\nAdd ``'dictmessages'`` to your ``INSTALLED_APPS`` setting like this::\r\n\r\n INSTALLED_APPS = {\r\n ...\r\n 'dictmessages',\r\n }\r\n\r\n\r\nGetting Started\r\n---------------\r\n\r\nWherever you would normally make use of the ``django.contrib.messages`` API you\r\ncan use this package instead::\r\n\r\n # Before...\r\n from django.contrib import messages\r\n\r\n # After...\r\n from dictmessages import messages\r\n\r\nSince ``dictmessages`` is a simply a wrapper around the original functionality,\r\nyou can continue to use it in the same way::\r\n\r\n from dictmessages import messages\r\n ...\r\n ...\r\n\r\n # This still works the same...\r\n messages.success(request, 'Awesome! You totally nailed that, dude.')\r\n\r\n\r\nBut, if you'd like to something a little more fancy...::\r\n\r\n from dictmessages import messages\r\n ...\r\n ...\r\n\r\n message_dictionary = dict(\r\n object='Awesome!', activity='You totally nailed that, dude.')\r\n\r\n messages.success(requestion, message_dictionary)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/mhurt/django-dictmessages", "keywords": "django messages dictionary template utility", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-dictmessages", "package_url": "https://pypi.org/project/django-dictmessages/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-dictmessages/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/mhurt/django-dictmessages" }, "release_url": "https://pypi.org/project/django-dictmessages/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "django.contrib.messages wrapper allowing pre-rendering of message dictionaries", "version": "1.0.0" }, "last_serial": 1442573, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9fb3eb150f92f58e5ce6944a25527515", "sha256": "d8764b3695de3ed6d57a29736bae337978f1eda85ee7a489d65a53848a172bce" }, "downloads": -1, "filename": "django_dictmessages-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fb3eb150f92f58e5ce6944a25527515", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5194, "upload_time": "2015-02-28T20:02:23", "url": "https://files.pythonhosted.org/packages/0f/90/e8066c0f212175868d8c69ab7088ab7138269e7c4eeb287e3c57903ad0ac/django_dictmessages-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9bdaf80f9b422cbf81e906a24be775f6", "sha256": "dae206c73cf4a24c808ef02ef787f1d9b7be99f1361b8a9e1bd2e10346b88646" }, "downloads": -1, "filename": "django-dictmessages-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9bdaf80f9b422cbf81e906a24be775f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2666, "upload_time": "2015-02-28T20:02:26", "url": "https://files.pythonhosted.org/packages/c5/7e/987cc344f7b8357c1cf365ba56d8c0213c47521ac48c0d4e1b0e6ee475b5/django-dictmessages-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9fb3eb150f92f58e5ce6944a25527515", "sha256": "d8764b3695de3ed6d57a29736bae337978f1eda85ee7a489d65a53848a172bce" }, "downloads": -1, "filename": "django_dictmessages-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fb3eb150f92f58e5ce6944a25527515", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5194, "upload_time": "2015-02-28T20:02:23", "url": "https://files.pythonhosted.org/packages/0f/90/e8066c0f212175868d8c69ab7088ab7138269e7c4eeb287e3c57903ad0ac/django_dictmessages-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9bdaf80f9b422cbf81e906a24be775f6", "sha256": "dae206c73cf4a24c808ef02ef787f1d9b7be99f1361b8a9e1bd2e10346b88646" }, "downloads": -1, "filename": "django-dictmessages-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9bdaf80f9b422cbf81e906a24be775f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2666, "upload_time": "2015-02-28T20:02:26", "url": "https://files.pythonhosted.org/packages/c5/7e/987cc344f7b8357c1cf365ba56d8c0213c47521ac48c0d4e1b0e6ee475b5/django-dictmessages-1.0.0.tar.gz" } ] }