Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 Python 3 上运行的 Django 应用程序。
我想使用 Google Site Verification API 让用户向我证明他们拥有某个网站。
这样做的好方法是什么?显然,我希望尽可能使用现成的包,并尽可能编写最少的代码。
我不知道任何符合您需求的套餐解决方案。
我们已将字段添加到模型站点“google_verification”,作为可选。然后,在您的基本模板中:
<head> {% if site.google_verification %} <meta name="google-site-verification" content="{{ site.google_verification }}"> {% endif %} <!-- some other code --> </head>