{ "info": { "author": "Torchbox and NHS Digital", "author_email": "hello@torchbox.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# wagtail-import-export\nPage export from one Wagtail instance into another.\n\nA published page and its published descendants can be exported via API or file from a source site and imported into a destination site under an existing page.\n\nThe destination site should have the same page models as the source site, with compatible migrations.\n\n## Installation\n\n pip install wagtail-import-export\n\nNow add to your project's `INSTALLED_APPS`:\n\n INSTALLED_APPS = [\n # ...\n 'wagtailimportexport',\n # ...\n ]\n\nAdd the following to your project's urls.py (note that the `include(wagtailimportexport_urls)` line must appear above the `include(wagtail_urls)` line that defines Wagtail's default routes):\n\n from wagtailimportexport import urls as wagtailimportexport_urls\n\n urlpatterns = [\n # ...\n url(r'', include(wagtailimportexport_urls)),\n url(r'', include(wagtail_urls)),\n ]\n\n(`wagtailimportexport.urls` contains the export API endpoint. The admin urls are in `wagtailimportexport.admin_urls` and\nare automatically registered.)\n\nYou should now see an 'Import / Export' item in the Wagtail admin menu.\n\n## Configuration\n\nWhen importing via the API, only published pages are exported by default. If a descendant page is unpublished it and all its descendants are pruned (even if some of those descendants are themselves published).\n\nIt is possible to export all pages under a source page by adding a setting on the source site:\n\n WAGTAILIMPORTEXPORT_EXPORT_UNPUBLISHED = True\n\nThis should *not* be used in a public source site because the API is unauthenticated and would thus expose unpublished content to anyone.\n\n\n## Limitations\n\nIf the imported content includes any foreign keys to page models, these will be updated to reflect the new page IDs if the target page is also part of the import, or left unchanged otherwise. If the target page is neither part of the import nor does it already exist on the destination site, this is likely to fail with a database integrity error.\n\nPage references within rich text or StreamField content will not be rewritten to reflect new page IDs.\n\nImports are processed in tree path order; first the base `Page` records are imported, followed by the data for specific page subclasses. If a model is imported which includes a foreign key to a specific subclass of `Page`, and the target page of that foreign key appears in the import but later in tree path order, this will fail with an integrity error (as the relevant record will not have been created at that point).\n\nNon-page data, such as images, documents or snippets, is not included in the import; the user is responsible for ensuring that any objects referenced from imported pages are already present on the destination site (with matching IDs).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/torchbox/wagtail-import-export", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "wagtail-import-export", "package_url": "https://pypi.org/project/wagtail-import-export/", "platform": "", "project_url": "https://pypi.org/project/wagtail-import-export/", "project_urls": { "Homepage": "https://github.com/torchbox/wagtail-import-export" }, "release_url": "https://pypi.org/project/wagtail-import-export/0.2/", "requires_dist": null, "requires_python": "", "summary": "Page export from one Wagtail instance into another", "version": "0.2" }, "last_serial": 4778989, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e0c92d6ab21628bc0752f1eb33e71846", "sha256": "d1db31e2de62f2afd47a41045a5ce7fdf414ae216cebb6a6008cff45f7395f4f" }, "downloads": -1, "filename": "wagtail_import_export-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e0c92d6ab21628bc0752f1eb33e71846", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11526, "upload_time": "2018-05-02T19:47:14", "url": "https://files.pythonhosted.org/packages/ce/87/a28ff78ef06890eca5760a58287cd4aa9a2d7a27b2485aa0b07d58ffd980/wagtail_import_export-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9af20f799a4500928145c24a8b21045d", "sha256": "0a8b79675a8856442a6216c174cb453def4f337ef0f6c43405900b45d28d19a6" }, "downloads": -1, "filename": "wagtail-import-export-0.1.tar.gz", "has_sig": false, "md5_digest": "9af20f799a4500928145c24a8b21045d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7862, "upload_time": "2018-05-02T19:47:16", "url": "https://files.pythonhosted.org/packages/f3/0e/8107eee9f5e82382b620350c9f5cc45193c3a81b71a757deeb91cfde510f/wagtail-import-export-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "31ebc6dfd9aff9fed404fbbcc4ceae8c", "sha256": "3e30e5dfc2ccec006402a9a69a191d07a18d59ab52e90d985d84074f4c8d1a65" }, "downloads": -1, "filename": "wagtail_import_export-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "31ebc6dfd9aff9fed404fbbcc4ceae8c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12898, "upload_time": "2019-02-04T18:46:31", "url": "https://files.pythonhosted.org/packages/32/d2/295ad43836dec4b38f68aeec0d8547d94a817747eeb1ea3181103010094b/wagtail_import_export-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02d9fcd6f37b0bec6fc8c93b03a1a752", "sha256": "2a7219f7d09c4a70ff0f8d677476d3995ff89c681669c5cea819eba6c123ed16" }, "downloads": -1, "filename": "wagtail-import-export-0.2.tar.gz", "has_sig": false, "md5_digest": "02d9fcd6f37b0bec6fc8c93b03a1a752", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8349, "upload_time": "2019-02-04T18:46:18", "url": "https://files.pythonhosted.org/packages/5d/34/e8b90b009f2d495760539c9ebb778de5655b5edfb5dd55885c665f3a6da7/wagtail-import-export-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "31ebc6dfd9aff9fed404fbbcc4ceae8c", "sha256": "3e30e5dfc2ccec006402a9a69a191d07a18d59ab52e90d985d84074f4c8d1a65" }, "downloads": -1, "filename": "wagtail_import_export-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "31ebc6dfd9aff9fed404fbbcc4ceae8c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12898, "upload_time": "2019-02-04T18:46:31", "url": "https://files.pythonhosted.org/packages/32/d2/295ad43836dec4b38f68aeec0d8547d94a817747eeb1ea3181103010094b/wagtail_import_export-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02d9fcd6f37b0bec6fc8c93b03a1a752", "sha256": "2a7219f7d09c4a70ff0f8d677476d3995ff89c681669c5cea819eba6c123ed16" }, "downloads": -1, "filename": "wagtail-import-export-0.2.tar.gz", "has_sig": false, "md5_digest": "02d9fcd6f37b0bec6fc8c93b03a1a752", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8349, "upload_time": "2019-02-04T18:46:18", "url": "https://files.pythonhosted.org/packages/5d/34/e8b90b009f2d495760539c9ebb778de5655b5edfb5dd55885c665f3a6da7/wagtail-import-export-0.2.tar.gz" } ] }