{
"info": {
"author": "Matiboy",
"author_email": "mathieu@redapesolutions.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4"
],
"description": "# django-json-messages\nAdd json encoded messages (from Django messages framework) to templates\n\n# Install\n\n```sh\n pip install django-json-messages\n```\n\n# Usage\n\n## Django messages\n\nMake sure the [Django messages framework](https://docs.djangoproject.com/en/1.7/ref/contrib/messages/) is installed and working.\n\n## App\n\nAdd `json_messages` to your list of `INSTALLED_APPS`\n\n## Context processor\n\nAdd `json_messages.context_processors.json_messages` in your `CONTEXT_PROCESSORS` settings.\n\nA `json_messages` property is now available on the context.\n\nIt is a dict version of the messages with `msg` and `type` keys\n\n## Template tags\n\n### Loading\n\nUse `{% load json_messages %}` at the top of your template\n\n### Json dump\n\nUse `{% json_messages_dump %}` to simply dump the json encoded messages into your template\n\n**Note** that all messages' `msg` properties are passed through Django's [escapejs](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#escapejs) for security reasons.\n\n### Script\n\nUse `{% json_messages_script %}` to dump the messages array into a Javascript window variable called ` messages `\n\nThis is equivalent to writing\n\n```\n\n```\n\n#### Configuration\n\n- Set a context variable `js_variable` to override the name of the window variable use by `{% json_messages_script %}` \n*Example:* \n```\n {% json_messages_script js_variable=\"blop\" %}\n``` \nresults in\n```\n\n```\nDefaults to *\"messages\"*\n\n\n## Package dependencies\n\nNone",
"description_content_type": null,
"docs_url": null,
"download_url": null,
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/matiboy/django-json-messages.git",
"keywords": "django messages framework json",
"license": "GPLv2",
"maintainer": null,
"maintainer_email": null,
"name": "django-json-messages",
"package_url": "https://pypi.org/project/django-json-messages/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/django-json-messages/",
"project_urls": {
"Homepage": "https://github.com/matiboy/django-json-messages.git"
},
"release_url": "https://pypi.org/project/django-json-messages/0.1.2/",
"requires_dist": null,
"requires_python": null,
"summary": "Json encode messages from the Django messages framework and dump them as JS",
"version": "0.1.2"
},
"last_serial": 1436929,
"releases": {
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "8213e9db310948059007d5107e60bede",
"sha256": "cc2ab79cf54d99898193951d6aa8f94acbcbc0ef1d49b0320cbafc933b5da844"
},
"downloads": -1,
"filename": "django_json_messages-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8213e9db310948059007d5107e60bede",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5363,
"upload_time": "2015-02-25T02:29:59",
"url": "https://files.pythonhosted.org/packages/64/29/2df2d0543e06b09b5fdbfe52ffa890e44de26a7c4167da3367187ff81162/django_json_messages-0.1.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "1148a7c54ddc4f6106a8d7f9889494bd",
"sha256": "90cc703ccd58589a446181e57cb236ba3d87bf03ae543d43b8959e635fd543db"
},
"downloads": -1,
"filename": "django-json-messages-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "1148a7c54ddc4f6106a8d7f9889494bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3573,
"upload_time": "2015-02-25T02:29:55",
"url": "https://files.pythonhosted.org/packages/54/eb/25e0e2ad02ed6a75852a65e52050e193c58584366de696c7d25fe3dd2904/django-json-messages-0.1.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "8213e9db310948059007d5107e60bede",
"sha256": "cc2ab79cf54d99898193951d6aa8f94acbcbc0ef1d49b0320cbafc933b5da844"
},
"downloads": -1,
"filename": "django_json_messages-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "8213e9db310948059007d5107e60bede",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5363,
"upload_time": "2015-02-25T02:29:59",
"url": "https://files.pythonhosted.org/packages/64/29/2df2d0543e06b09b5fdbfe52ffa890e44de26a7c4167da3367187ff81162/django_json_messages-0.1.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "1148a7c54ddc4f6106a8d7f9889494bd",
"sha256": "90cc703ccd58589a446181e57cb236ba3d87bf03ae543d43b8959e635fd543db"
},
"downloads": -1,
"filename": "django-json-messages-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "1148a7c54ddc4f6106a8d7f9889494bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3573,
"upload_time": "2015-02-25T02:29:55",
"url": "https://files.pythonhosted.org/packages/54/eb/25e0e2ad02ed6a75852a65e52050e193c58584366de696c7d25fe3dd2904/django-json-messages-0.1.2.tar.gz"
}
]
}