{ "info": { "author": "Nowell Strite", "author_email": "nowell@strite.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: OS Independent", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Version Control", "Topic :: Utilities" ], "description": "django-versions\n###############\n\nOverview\n========\n\n``django-versions`` allows you to version the data stored in django models seamlessly. To get started all you need to do is to set ``VERSIONS_REPOSITORIES`` variable in your settings and configure the repositories you would like to use, then just subclass your Model from ``VersionsModel`` and start saving data::\n\n from django.db import models\n from versions.models import VersionsModel\n\n class MyModel(VersionsModel):\n text = models.TextField()\n\nInstallation\n============\n\nDependencies\n------------\n\n* Mercurial >= 1.5.2\n* Django == 1.1.X\n\nInstalling django-versions\n--------------------------\n\nIf your are installing from source, you just need to run the following command from the base of the ``django-versions`` source tree::\n\n python setup.py install\n\nIf you want to install the package without checking out the source you should run::\n\n pip install django-versions\n\n # OR if you don't have pip installed (you should definitely check out pip)\n easy_install django-versions\n\nFor the time being, we need to patch Django to allow us to gain access to the related model from Manager classes. There is a patch included at the root of the source tree ``django.patch`` that includes the required changes. To patch django, go to the root of your checkout of django 1.1.X and run::\n\n patch -p0 < /path/to/django-versions/django.patch\n\nAdd ``VERSIONS_REPOSITORIES`` to your settings file, pointing to the location where you would like ``django-versions`` to create and store your model history::\n\n VERSIONS_REPOSITORIES = {\n 'default': {\n 'backend': 'versions.backends.hg',\n 'local': '/path/to/my/projects/model/history',\n }\n }\n\nEnabling Version Management\n...........................\n\nInstall the ``VersionsMiddleware``::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'versions.middleware.VersionsMiddleware',\n ...\n )\n\nOr handle enabling editing of Versioned models manually::\n\n from versions.base import revision\n\n @revision.commit_on_success\n def my_editing_function(request):\n m = MyModel.objects.get(pk=1)\n m.save()\n\n\n def my_other_editing_function(request):\n with revision:\n m = MyModel.objects.get(pk=1)\n m.save()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/nowells/django-versions/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-versions", "package_url": "https://pypi.org/project/django-versions/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-versions/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/nowells/django-versions/" }, "release_url": "https://pypi.org/project/django-versions/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A django application to enable versioning of data stored in Django models.", "version": "1.0.1" }, "last_serial": 790982, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "fbf458932c453f1c03ca7381c74d9285", "sha256": "53254dd36a3d478a88e21d618e0b607211d83e745c75661e556a9eee857c2b19" }, "downloads": -1, "filename": "django-versions-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fbf458932c453f1c03ca7381c74d9285", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16688, "upload_time": "2010-08-17T06:05:00", "url": "https://files.pythonhosted.org/packages/59/6e/4658bc5ccc5f607ed079919134bf39b39b26563c1092707e1809f21b84b2/django-versions-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f4be9b84a483e4e9d820dda53ae9ffdc", "sha256": "35e9259343e715ec33dd0399ae277ba5ef7e4fe87c55914685619d75596f67d1" }, "downloads": -1, "filename": "django-versions-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f4be9b84a483e4e9d820dda53ae9ffdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22011, "upload_time": "2010-08-17T23:32:40", "url": "https://files.pythonhosted.org/packages/0f/b5/93a427f04d74895e7fb2f8a3176f9f4db3e97aff758ed0148ca0ba4b969a/django-versions-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f4be9b84a483e4e9d820dda53ae9ffdc", "sha256": "35e9259343e715ec33dd0399ae277ba5ef7e4fe87c55914685619d75596f67d1" }, "downloads": -1, "filename": "django-versions-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f4be9b84a483e4e9d820dda53ae9ffdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22011, "upload_time": "2010-08-17T23:32:40", "url": "https://files.pythonhosted.org/packages/0f/b5/93a427f04d74895e7fb2f8a3176f9f4db3e97aff758ed0148ca0ba4b969a/django-versions-1.0.1.tar.gz" } ] }