{ "info": { "author": "Kalob Taulien", "author_email": "kalob@learnwagtail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.2", "Framework :: Wagtail", "Framework :: Wagtail :: 2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "====================\nWagtail Live Preview\n====================\n\nWagtail Live Preview lets you view your page changes as you make them in the Wagtail Admin.\n\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\n**Using React or Vue?** This won't work for you, nor was it designed to. This Live Preview package is designed for simple Wagtail websites.\n\n============\nHow it works\n============\nTell it how often to save a snapshot of the page you're working on and how often to poll for updates in the Live Preview.\n\nIt does *not* piggy back on Wagtails Revision system, but you can tell it to save a page revision every *x* number of saves so you never accidentally lose your work (or if you just want to log your progress and maybe revert back to a previous content iteration).\n\nThe package itself is called ``wagtail-livepreview`` to let everyone know this is a Wagtail specific package. But the code references ``livepreview`` instead of ``wagtail_livepreview`` as to not confuse Wagtail features with what's in this package.\n\n\n\n============\nInstallation\n============\n1. Install the package with::\n\n\tpip install wagtail-livepreview\n\n2. Add it to your ``INSTALLED_APPS`` *above* the ``'wagtail.admin'`` app::\n\n INSTALLED_APPS = [\n # ...\n 'livepreview',\n # ...\n 'wagtail.admin',\n ]\n\n\n3. Add ``{% load livepreview_tags %}`` to your ``base.html`` template. And add ``{% livepreview_js %}`` right above your ``
\n\t\t\t...\n\n\t\t\t{% livepreview_js %}\n\t\t`` tag in ``base.html``::\n\n\t{% load static wagtailuserbar livepreview_tags %}\n\n\t\n\t\n\t\t
\n\t\t\t...\n\t\t\n\n\t\t
\n\t