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
- Set your API key in Wagtail Admin → Settings → SEO Settings → IndexNow section
- That's it. Every time a page is published, a background notification is sent to the IndexNow API
- 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