Skip to main content

Yoast For Wagtail

Project description

Yoastseo + Wagtail = 🚀

Tested with :

  • django==3.0.9

  • wagtail==2.10.1

  • yoastseo:1.80.0


Install with pip :

pip install wagtailyoast

Add wagtailyoast to django apps installed :


Add locale used for Yoast and make sure you have STATIC_URL set up in your :

STATIC_URL = '/static/'

Add YoastPannel to your Page models :

from wagtail.admin.edit_handlers import TabbedInterface, ObjectList
from wagtailyoast.edit_handlers import YoastPanel

class TestPage(Page):
    keywords = models.CharField(default='', blank=True, max_length=100)

    edit_handler = TabbedInterface([
        ObjectList(Page.content_panels, heading=('Content')),
        ObjectList(Page.promote_panels, heading=('Promotion')),
        ObjectList(Page.settings_panels, heading=('Settings')),

YoastPanel params are :

  • keywords : Default keywords of the page.

  • title : ‘Search Engine Friendly’ title. This will appear at the top of the browser window.

  • search_description : ‘Search Engine Friendly’ description.

  • slug : URL of the page.

Development env

git clone
pip install -r requirements.txt

Run Django Server

python migrate
python init
python runserver

Run Webpack Server

yarn start

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtailyoast-0.0.10.tar.gz (11.5 MB view hashes)

Uploaded source

Built Distribution

wagtailyoast-0.0.10-py3-none-any.whl (11.6 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page