Using Google Site Verification API in Django on Python 3

703 Views Asked by At

I have a Django app running on Python 3.

I want to use Google Site Verification API to let users prove to me that they own a certain site.

What's a good way to do that? Obviously, I'd like to use ready-made packages whenever possible and write the least amount of code that I can.

1

There are 1 best solutions below

0
On

I don't know any eligable package solution for your needs.

We've added field to model Site 'google_verification', as optional. Then, in your very base template,:

<head>
{% if site.google_verification %}
    <meta name="google-site-verification" content="{{ site.google_verification }}">
{% endif %}
<!-- some other code -->
</head>