1
我們的網站幾乎每天都會更新。每次添加新頁面時,我們都需要將網站地圖更新爲Google網站管理員。將網站地圖從django更新爲Google網站管理員不起作用
我們嘗試使用ping_google()以及所需的一組參數和谷歌,它似乎從未更新網站管理員的網站地圖。記錄響應,我們重新寫的功能,並記錄下面給出的迴應:
2010-10-01 09:00:02,489 DEBUG Sitemap Response: <html><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head><title>Google Webmaster Tools
-
Sitemap Notification Received</title>
<meta name="robots" content="noindex, noodp">
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-18009-2";
_utcp="/webmasters/";
_uanchor=1;
urchinTracker();
</script></head>
<body><h2>Sitemap Notification Received</h2>
<br>
Your Sitemap has been successfully added to our list of Sitemaps to crawl. If this is the first time you are notifying Google about this Sitemap, please add it via <a href="http://www.google.com/webmasters/tools/">http://www.google.com/webmasters/tools/</a> so you can track its status. Please note that we do not add all submitted URLs to our index, and we cannot make any predictions or guarantees about when or if they will appear.</body></html>
的反應似乎已經很好了。但網站地圖永遠不會更新網站管理員。我們正在使用django 1.1。除了ping_google()