pypi wagtail-herald 0.10.0
v0.10.0: IndexNow Support

latest releases: 0.12.1, 0.12.0, 0.11.1...
5 months ago

What's Changed

New Feature: IndexNow Support

Automatically notify search engines (Bing, Yandex, Naver, etc.) the moment a page is published. No more waiting for crawlers to discover your content.

How It Works

  1. Set your API key in Wagtail Admin → Settings → SEO Settings → IndexNow section
  2. That's it. Every time a page is published, a background notification is sent to the IndexNow API
  3. The verification key file (/{your-key}.txt) is served automatically — no manual file placement needed

Technical Details

  • Non-blocking: Notifications are sent in a background thread, so publish actions are never delayed
  • Secure URL pattern: The key file endpoint only matches [a-zA-Z0-9\-]{8,128}.txt, preventing URL hijacking
  • Input validation: API key field validates against [a-zA-Z0-9\-] pattern
  • Graceful failure: Network errors are logged as warnings without affecting page publishing

Files Changed

File Change
models/settings.py indexnow_api_key field with regex validation
indexnow.py IndexNow API notification (threaded)
signals.py page_published signal handler
views.py Key file verification endpoint
urls.py URL pattern for /{key}.txt
apps.py Signal registration
migrations/0008_* New field migration

Migration

Run python manage.py migrate after upgrading. No other configuration changes required beyond setting the API key in the admin panel.

Full Changelog: v0.9.0...v0.10.0

Don't miss a new wagtail-herald release

NewReleases is sending notifications on new releases.