{ "info": { "author": "Vladimir Savin", "author_email": "zero13cool@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://raw.githubusercontent.com/zerc/django-light-draft/master/example/blog/static/images/DLD.png\n :alt: Django Light Draft\n\n.. image:: https://travis-ci.org/zerc/django-light-draft.svg?branch=master\n :target: https://travis-ci.org/zerc/django-light-draft\n.. image:: https://codecov.io/gh/zerc/django-light-draft/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/zerc/django-light-draft\n \nPreview model changes without saving them into the database. `Watch a demo `_ on YouTube.\n\nRequirements:\n\n* Django >= 1.8.x\n* Python >= 2.7.x\n\nQuickstart\n----------\n\nInstal the package via ``pip``:\n\n.. code:: shell\n\n pip install django-light-draft\n\nAdd next lines to the ``settings.py`` of your project:\n\n.. code:: python\n\n INSTALLED_APPS = (\n ...,\n 'light_draft',\n )\n\n # Default settings. If you are happy with them - you can omit them.\n DRAFT_SETTINGS = {\n 'cache_name': 'default', # or any other cache you may have\n 'ttl': 60*5,\n }\n\n\nTo make it work, you need to have at least ``default`` cache defined. If you are not familiar with this term check out `documentation `_. In simpliest case you can enable in memory like this:\n\n.. code:: python\n\n CACHES = {\n 'default': {\n 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n 'LOCATION': 'just-an-example',\n }\n }\n\n\nThen, in order to enable the feature for a particular model you need to make sure:\n\n1. The admin model has been inherited from ``light_draft.admin.DraftAdmin``:\n\n.. code:: python\n\n from light_draft.admin import DraftAdmin\n\n class MyModelAdmin(DraftAdmin):\n ...\n\n2. The detail view of your model has been inherited from ``light_draft.views.BaseDraftView``:\n\n.. code:: python\n\n from light_draft.views import BaseDraftView\n\n class MyModelDetailView(BaseDraftView):\n ...\n\n3. The model has ``.get_absolute_url()`` method defined.\n\nSee ``example/blog`` app for more details.\n\nContributing\n------------\n\nSee `CONTRIBUTING.md `_ file for information how you can contribute to the project. Cheers!\n\n\nLicence & Authors\n-----------------\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Vladimir Savin.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zerc/django-light-draft", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-light-draft", "package_url": "https://pypi.org/project/django-light-draft/", "platform": "", "project_url": "https://pypi.org/project/django-light-draft/", "project_urls": { "Homepage": "https://github.com/zerc/django-light-draft" }, "release_url": "https://pypi.org/project/django-light-draft/0.6.1/", "requires_dist": null, "requires_python": "", "summary": "Preview changes without saving the data into db.", "version": "0.6.1" }, "last_serial": 5593869, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9a13f78b026b55043d5a58b13d82327d", "sha256": "2e0eafacd140bcee48dae685e0a6563c753f18d8ec03b7ae470d3ede88d45d32" }, "downloads": -1, "filename": "django-light-draft-0.1.tar.gz", "has_sig": false, "md5_digest": "9a13f78b026b55043d5a58b13d82327d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4756, "upload_time": "2014-08-01T20:03:42", "url": "https://files.pythonhosted.org/packages/0f/69/c91ddb6b4b1ba3c39cab368e3ced6f3d10879c380bffab77f1751bfd6f29/django-light-draft-0.1.tar.gz" } ], "0.2a": [ { "comment_text": "", "digests": { "md5": "941e2d72c87d3e9b36b2787ee635bf83", "sha256": "be04ded5f974c68c13211d8a0cf9d542d7d15b329aaf9b02192f722e2e62c3ad" }, "downloads": -1, "filename": "django-light-draft-0.2a.tar.gz", "has_sig": false, "md5_digest": "941e2d72c87d3e9b36b2787ee635bf83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5579, "upload_time": "2014-08-04T17:38:28", "url": "https://files.pythonhosted.org/packages/89/89/36404c20ffc9b0dc512c935933b29fbb67656aa8fa58dfd14dcbe85e74f0/django-light-draft-0.2a.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "4ab17a9d3111817fe62508b367b08382", "sha256": "8ea2f1ea3e5e264ad6c3fad9d106cb27ea6decce587e6f2303b7b8483482fb46" }, "downloads": -1, "filename": "django-light-draft-0.4.0.tar.gz", "has_sig": false, "md5_digest": "4ab17a9d3111817fe62508b367b08382", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5722, "upload_time": "2017-12-04T23:04:03", "url": "https://files.pythonhosted.org/packages/f6/0b/9ee27050c2b118fdc130135363472414827bc331445cb3c7a69c21ce3114/django-light-draft-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "9208c2274acd1aac06b549b7742519c7", "sha256": "f735c6d659fde7203547bdbb7e8278f4f4d6f2f8a26b63853f1ed2431087169a" }, "downloads": -1, "filename": "django-light-draft-0.5.0.tar.gz", "has_sig": false, "md5_digest": "9208c2274acd1aac06b549b7742519c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6181, "upload_time": "2018-04-07T17:09:07", "url": "https://files.pythonhosted.org/packages/33/8b/281fc9bd524004c62530495fddbff460808a612d5334b31c58770c2b8848/django-light-draft-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "087db2e37507aed9bef0c335ae9c617c", "sha256": "9e0b6c16792835cfde5888c0944b7b7ff2a4f9354630a62176c52591882eba04" }, "downloads": -1, "filename": "django-light-draft-0.6.0.tar.gz", "has_sig": false, "md5_digest": "087db2e37507aed9bef0c335ae9c617c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7776, "upload_time": "2018-07-15T11:24:38", "url": "https://files.pythonhosted.org/packages/8c/4c/ee7e997fecfd56adcf63149c378f2943a9ee0d729447abd9a5e8e77590dc/django-light-draft-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "b1885d90e252c9c6630a46ad827afeb8", "sha256": "ed0fee06d3503075d9b0070ded37431dc775f1665f19b12e4df17d41172a0bf9" }, "downloads": -1, "filename": "django-light-draft-0.6.1.tar.gz", "has_sig": false, "md5_digest": "b1885d90e252c9c6630a46ad827afeb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7420, "upload_time": "2019-07-27T19:52:54", "url": "https://files.pythonhosted.org/packages/63/6d/4fbcbe94957e2eafa6bd079fa476c60eb6d29e40b856b9356df2ed43a0cc/django-light-draft-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b1885d90e252c9c6630a46ad827afeb8", "sha256": "ed0fee06d3503075d9b0070ded37431dc775f1665f19b12e4df17d41172a0bf9" }, "downloads": -1, "filename": "django-light-draft-0.6.1.tar.gz", "has_sig": false, "md5_digest": "b1885d90e252c9c6630a46ad827afeb8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7420, "upload_time": "2019-07-27T19:52:54", "url": "https://files.pythonhosted.org/packages/63/6d/4fbcbe94957e2eafa6bd079fa476c60eb6d29e40b856b9356df2ed43a0cc/django-light-draft-0.6.1.tar.gz" } ] }