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:
- Google Webmaster Tools
- Bing Webmaster Tools
- Yandex Webmaster Tools
- Mail.ru Webmaster Tools
- Mail.ru Seosan Tools
- Majestic SEO
- Alexa
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 optional settings:
WEBMASTER_VERIFICATION_USE_SUBDOMAINS = True # enable subdomains support (disabled by default) WEBMASTER_VERIFICATION_USE_CACHE = True # enable cache (disabled by default) WEBMASTER_VERIFICATION_CACHE_LIFETIME = 360 # cache life time in seconds (default - 5 minutes)
Add verification data in your admin interface.
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 2.2 support
- Better package version
- Add support of Mail.Ru services
- Correct verification template for Yandex
- Store verification codes in database
- Add support of subdomains
- Use docker-based travis testing
- Test against Django >=1.11
- Removed tests for Python 3.4, add 3.6
- I only ran the tests, I don't think I use it on any prod site right now
- 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.