This application allows various webmaster tools to verify that a Django site is managed by you.
The only supported method of verification is by accessing a file on your server.
Supported services:
Get django-webmaster-verification into your python path:
pip install django-webmaster-verification
Add webmaster_verification to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = (
    ...,
    'webmaster_verification',
    ...,
)
Add webmaster_verification to your root urlconf (urls.py):
urlpatterns = [
    ...,
    url(r'', include('webmaster_verification.urls')),
    ...,
]
Add settings just as:
WEBMASTER_VERIFICATION = {
    'bing': '<bing verification code>',
    'google': '<google verification code>',
    'majestic': '<majestic verification code>',
    'yandex': '<yandex verification code>',
    'alexa': '<alexa verification code>',
}
The codes are alphanumeric and don't include suffixes like 'html', e.g.
847e1f379a99c28a for google, not 847e1f379a99c28a.html.
Multiple codes are supported as well, except for bing:
WEBMASTER_VERIFICATION = {
    'bing': '<bing verification code>',
    'google': (
            '<google verification code 1>',
            '<google verification code 2>',
    ),
    'majestic': (
            '<majestic verification code 1>',
            '<majestic verification code 2>',
    ),
    'yandex': (
            '<yandex verification code 1>',
            '<yandex verification code 2>',
    ),
    'alexa': (
            '<alexa verification code 1>',
            '<alexa verification code 2>',
    ),
}
As Bing always accesses the same verification file I'm not sure if it's possible to support more than one code for it. Please let me know if yes, and how, as I don't really use their tools.
The Alexa codes I saw all had a length of 27 characters, so that's what this app assumes is used. Please let me know if your codes differ and I need to modify the app.
- Django 4.0 compatibility
- Move tests to azure pipelines for now
- Repackage
- Fix issue with new verification yandex file
- Use docker-based travis testing
- Test against Django >=3.0
- Removed tests for Python 2, 3.4, and add 3.6 to 3.8
- I only ran the tests, I don't think I use it on any prod site right now
- If any provider doesn't work please let me know and I'll probably remove it, I don't have the time to work on this code. Or send patches.
- Apologies for deleting issues, I deleted the old repo in between
- Python 2.7 and Django 1.8 are required
- Add Django 1.8 (beta1) support and drop 1.5 tests
- Django 1.7 (beta1) support
- Django 1.6 support
- Removed Python 2.5 testing
- Add alexa support
- Refactor the test project to use a different structure
- Python 3.2 support
- Integrate testing with travis
- Fix test errors when running from a real project
- Pypi updates
- Yandex Webmaster Tools support added.
- Bugfix for multiple verification codes for one provider.