{ "info": { "author": "Phil Plante", "author_email": "phil@rentlytics.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP" ], "description": "# django-zerodowntime\n\n[![CircleCI](https://circleci.com/gh/rentlytics/django-zerodowntime.svg?style=svg)](https://circleci.com/gh/rentlytics/django-zerodowntime)\n\nManagement commands to help Django users build & deploy their projects with low interruption for their users. This method is often called Zero Downtime Continous Delivery, or ZDCD.\n\nDatabase schema migrations are the most common cause of application downtime during a deployment. Some operations like adding a NULLed column or an entirely new table do not affect the application as it continues to run. Other operations such as removing/renaming a column/table can cause the deployed code to fail in unexpected ways. Ultimately you will have to remove or rename existing schema, but most deployments do not require downtime so the code can be updated without interrupting users.\n\nThis project was developed for use at [Rentlytics](http://rentlytics.com), [here is a copy](./Rentlytics-ZDCD.pdf) of the presentation which brought this project to life.\n\n## Commands\n\n### `check_migrations`\nChecks all pending migrations against the DEFAULT Django database for zero downtime deployment compatibility. A migration is considered compatible when it contains only: `CreateModel`, `AddField`, or `AlterModelOptions` operations. An exception is when `AddField` is used to create a new column with a default value provided. Providing a default value requires filling all existing rows with the value, which can be an expensive operation.\n\n\n### `insert_git_hooks`\nAdds or modifies the git `commit-msg` hook at `.git/hooks/commit-msg` to execute `check_migrations` before each commit is saved to git's history. When `check_migrations` exits with a non-zero exit code, an error message will be output listing the incompatible migration operations. In the event that incompatible migrations are to be allowed, you can add `[allow-unsafe-migrations]` to your commit message, which skips this check.\n\n\n## Usage Guide\n* [Heroku + CircleCI](./examples/heroku/)\n\n\n=======\nHistory\n=======\n\n0.1.0 (2016-06-02)\n------------------\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rentlytics/django-zerodowntime", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-zerodowntime", "package_url": "https://pypi.org/project/django-zerodowntime/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-zerodowntime/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rentlytics/django-zerodowntime" }, "release_url": "https://pypi.org/project/django-zerodowntime/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "A Django Migrations extension providing a framework for Zero Downtime Continuous Delivery.", "version": "0.3.0" }, "last_serial": 2372092, "releases": { "0.2.4": [ { "comment_text": "", "digests": { "md5": "d76a3e1032d6599515c2253428686bff", "sha256": "8ed8574cb97ebcdd8f4b7b159f72f45992e610b44f9d644a80f3ba009961dd2d" }, "downloads": -1, "filename": "django_zerodowntime-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d76a3e1032d6599515c2253428686bff", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6009, "upload_time": "2016-08-18T23:27:48", "url": "https://files.pythonhosted.org/packages/a5/0d/23ae55898ab4b54e29953385c93f6412bac6e75efc7c795fb98201ad20b4/django_zerodowntime-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc1bac737c46083d3600591508079d5c", "sha256": "d3171415e64303a106e6898c60df0128cf4bfb31bbcd3e99ff47766bbe31674a" }, "downloads": -1, "filename": "django-zerodowntime-0.2.4.tar.gz", "has_sig": false, "md5_digest": "dc1bac737c46083d3600591508079d5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23411, "upload_time": "2016-08-18T23:27:44", "url": "https://files.pythonhosted.org/packages/de/b3/f135d5c5053ac83fa8d8e41ed8cb596ef3e886d13e3c4d5223748781e8b6/django-zerodowntime-0.2.4.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "572aea420ad949bc6eff89b7c66915ea", "sha256": "e276c53465a60db4d1e07cad656a67607d41a19837645823469b26c0e0872e67" }, "downloads": -1, "filename": "django_zerodowntime-0.2.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "572aea420ad949bc6eff89b7c66915ea", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7854, "upload_time": "2016-08-22T23:44:36", "url": "https://files.pythonhosted.org/packages/f2/d1/747be48c0e2164e76833ba1293caaae68bb5a66caacc49925903eec02947/django_zerodowntime-0.2.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "254672d83314cfbbd36c3f29df4ef94b", "sha256": "92fead93176d510e719fdd56c6f9f64c24f3247c22ef7462646f8da3019925eb" }, "downloads": -1, "filename": "django-zerodowntime-0.2.6.tar.gz", "has_sig": false, "md5_digest": "254672d83314cfbbd36c3f29df4ef94b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24291, "upload_time": "2016-08-22T23:44:32", "url": "https://files.pythonhosted.org/packages/f8/13/3c68b532f59e60dd2168bbd6988fa31026d71285e062963f3e3b4c3b6966/django-zerodowntime-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "1c9ef58387631eb7eed9f3b39d8ddf02", "sha256": "89fa212b87dd202a08032e460e2c33baf1e76f1dcf8fe9447bf543aab45b3805" }, "downloads": -1, "filename": "django_zerodowntime-0.2.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1c9ef58387631eb7eed9f3b39d8ddf02", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7843, "upload_time": "2016-08-29T21:18:33", "url": "https://files.pythonhosted.org/packages/78/ae/b4e97cce9091e640e0be65680c1d631e5aa108d7402cdf7c2e734e08479f/django_zerodowntime-0.2.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02f1c6650e49b5e06755e4f88cc1248a", "sha256": "97d7ed56dc7e9ff7baa80a257a29335980ca4d5e2e3803a814b6059f5db1f0b8" }, "downloads": -1, "filename": "django-zerodowntime-0.2.7.tar.gz", "has_sig": false, "md5_digest": "02f1c6650e49b5e06755e4f88cc1248a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24287, "upload_time": "2016-08-29T21:18:28", "url": "https://files.pythonhosted.org/packages/4b/99/06ee1c68b7bec87f7dcc17af49c83fe015bf7210c61ccf506e73f790a9e3/django-zerodowntime-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "936fb532dd93379c65575ef18ace9526", "sha256": "a051bdfb6d1e3b990159f3625c8ca686e22a0acc0f48e04df3d505825ce84823" }, "downloads": -1, "filename": "django_zerodowntime-0.2.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "936fb532dd93379c65575ef18ace9526", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7811, "upload_time": "2016-09-01T01:02:54", "url": "https://files.pythonhosted.org/packages/9d/27/7942ca178b21bb2214492ab27686308ea345663f150289704b994f1e0400/django_zerodowntime-0.2.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6500da9e7fac995c96f9378eaf845721", "sha256": "ee25cd35bdcedb698e8c48a1c6aaa4aeb9add821b01aa0c9b60f277a3b260748" }, "downloads": -1, "filename": "django-zerodowntime-0.2.8.tar.gz", "has_sig": false, "md5_digest": "6500da9e7fac995c96f9378eaf845721", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24247, "upload_time": "2016-09-01T01:02:50", "url": "https://files.pythonhosted.org/packages/8d/67/18a55cb92712cceca9d7ee572fdfa2193e810e97fc5691864409402acebb/django-zerodowntime-0.2.8.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b8a4e1e8f6b06702b749ff026ef95226", "sha256": "5888b3745315eeff151be5fc07ec49c4dcd48388065b0c7e10ace3eb3fd9c43c" }, "downloads": -1, "filename": "django_zerodowntime-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8a4e1e8f6b06702b749ff026ef95226", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7955, "upload_time": "2016-09-29T23:05:09", "url": "https://files.pythonhosted.org/packages/7e/01/87321a7d48ff2510af1e0b5168edfee363452e0bf826427e865e1176f8fa/django_zerodowntime-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1da17c16df9365a23c4f49d80a4a0805", "sha256": "af2d4ed1e8e85b529456362e8132ca4b22968237b18b08fd319aa2ac2cc38eff" }, "downloads": -1, "filename": "django-zerodowntime-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1da17c16df9365a23c4f49d80a4a0805", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24806, "upload_time": "2016-09-29T23:05:06", "url": "https://files.pythonhosted.org/packages/10/8d/df1c944db30d6185038aeb4c455f31251fe58613fb90e6ae63f64b8f27b1/django-zerodowntime-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8a4e1e8f6b06702b749ff026ef95226", "sha256": "5888b3745315eeff151be5fc07ec49c4dcd48388065b0c7e10ace3eb3fd9c43c" }, "downloads": -1, "filename": "django_zerodowntime-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8a4e1e8f6b06702b749ff026ef95226", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7955, "upload_time": "2016-09-29T23:05:09", "url": "https://files.pythonhosted.org/packages/7e/01/87321a7d48ff2510af1e0b5168edfee363452e0bf826427e865e1176f8fa/django_zerodowntime-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1da17c16df9365a23c4f49d80a4a0805", "sha256": "af2d4ed1e8e85b529456362e8132ca4b22968237b18b08fd319aa2ac2cc38eff" }, "downloads": -1, "filename": "django-zerodowntime-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1da17c16df9365a23c4f49d80a4a0805", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24806, "upload_time": "2016-09-29T23:05:06", "url": "https://files.pythonhosted.org/packages/10/8d/df1c944db30d6185038aeb4c455f31251fe58613fb90e6ae63f64b8f27b1/django-zerodowntime-0.3.0.tar.gz" } ] }