{ "info": { "author": "Anton Strogonoff", "author_email": "anton@strogonoff.name", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-dbmessages\n=================\n\n**Almost like django.contrib.messages,\nbut doesn't need request to message a user.**\n\nIn fact, django-dbmessages is but a very thin and simple layer\non top of Django's ``contrib.messages``.\n\nTo message a user, you simply create and save an instance\nof provided ``Message`` model via shell, Django admin, or some other means.\n\n``Message`` model has all the same attributes you'd normally pass\nto ``contrib.messages`` (level, message, extra_tags),\nand in addition a ForeignKey link to User model.\n\nThe next time given user appears on the site, middleware provided by dbmessages\nchecks if user has any messages for them, and adds them to request using regular\n``contrib.messages`` API. Then it deletes those messages from the DB.\nSimple as that.\n\n\nQuick start\n-----------\n\n0. Make sure to enable Django's ``contrib.messages`` in your project\n (`check the docs `_).\n\n1. Install ``django-dbmessages`` (it's on PyPI).\n\n2. Add ``'dbmessages'`` to your INSTALLED_APPS\n and ``'dbmessages.middleware.DBMessageMiddleware'`` to MIDDLEWARE_CLASSES.\n\n3. Synchronize (or migrate) the DB.\n\nNow you can get into shell and address a message to yourself:\n\n >>> from dbmessages.models import Message\n >>> from django.contrib import messages\n >>> Message.objects.create(to_user=your_user, level=messages.INFO, message=\"Ahoy there\")\n\nProvided your front-end is integrated with Django's ``contrib.messages``,\nyou should see the \"Ahoy there\" message the next time you log in\nunder your account.", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/strogonoff/django-dbmessages", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-dbmessages", "package_url": "https://pypi.org/project/django-dbmessages/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-dbmessages/", "project_urls": { "Download": "http://github.com/strogonoff/django-dbmessages", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-dbmessages/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Request-independent messaging for Django on top of contrib.messages", "version": "0.1.1" }, "last_serial": 1724649, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fa9d5d5df26fa38db19fcd0763d451c4", "sha256": "2c456753098d3b2c873eace7ed4f9a93f2ac0ec146084e9f0fe69058df5d3b61" }, "downloads": -1, "filename": "django-dbmessages-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fa9d5d5df26fa38db19fcd0763d451c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6563, "upload_time": "2014-09-21T11:55:25", "url": "https://files.pythonhosted.org/packages/23/32/87815537b3766adb72a4597409b92a6e61e8989fd879d5f51859fcb36150/django-dbmessages-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "27d3597e7b015057c92498be01efafa8", "sha256": "b7711dc37e3dad2f6635d5d20da8e2e87a42e99edab6c6f636883e5094f75348" }, "downloads": -1, "filename": "django-dbmessages-0.1.1.tar.gz", "has_sig": false, "md5_digest": "27d3597e7b015057c92498be01efafa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6683, "upload_time": "2014-09-21T11:57:26", "url": "https://files.pythonhosted.org/packages/7a/96/81f1c407c98637cc476145fcd8a10a5c1099a5fb30154858a2b8c24a12dc/django-dbmessages-0.1.1.tar.gz" } ], "0.2.0a": [ { "comment_text": "", "digests": { "md5": "eb4f55c9910bb3dcb0abd9864381df0c", "sha256": "b9b4e00c45f1ce2244cc37ea95a3f5f5b48fc757b28e710eaf2927882be49a45" }, "downloads": -1, "filename": "django-dbmessages-0.2.0a.tar.gz", "has_sig": false, "md5_digest": "eb4f55c9910bb3dcb0abd9864381df0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6877, "upload_time": "2015-09-16T05:19:20", "url": "https://files.pythonhosted.org/packages/ee/24/7819a517f01fcb309f1f907a49a77996b1284c31356d2e35c7176113904f/django-dbmessages-0.2.0a.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "27d3597e7b015057c92498be01efafa8", "sha256": "b7711dc37e3dad2f6635d5d20da8e2e87a42e99edab6c6f636883e5094f75348" }, "downloads": -1, "filename": "django-dbmessages-0.1.1.tar.gz", "has_sig": false, "md5_digest": "27d3597e7b015057c92498be01efafa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6683, "upload_time": "2014-09-21T11:57:26", "url": "https://files.pythonhosted.org/packages/7a/96/81f1c407c98637cc476145fcd8a10a5c1099a5fb30154858a2b8c24a12dc/django-dbmessages-0.1.1.tar.gz" } ] }