As soon as your blog content updates, you may want to ping some services like Technorati. Django already has module django.contrib.sitemaps, which can ping google along with sitemap generation. But what if you want to update other search engines too? There's a plenty of services, which support RPC, so it is possible to ping them once your blog got updated. Or you can use a wonderful service Ping-O-Matic, which will do the work for you.
Ping-O-Matic is a service to update different search engines that your blog has updated. You can let it know about your updates using ordinary GET request, or using RPC call. This RPC call is just an HTTP request with some details in xml format. Python has a great XML-RPC client library xmlrpclib which makes work with RPC simple and pleasant.
Here's the simple code, which you can save in your app directory:
That's all! Now all you need to do is to call it once your blog gets updated. This can be done by subclassing save() method of your model:
Entry is the name of my model in the Blog application.










Thanks!
I believe you're missing a line like this in your example:
site = Site.objects.get_current()