Using Django Signals to Ping Sites on An Update

Posted 1 year, 4 months ago
Posted on Saturday, February 10, 2007

Since I wrote this new blog code using django, I needed a way to ping sites like technorati and ping-o-matic when I write or change an entry. After looking through the documentation I decided that django signals were the way to go. Here is a description of what I did.

First off I created a new table in the blog application to hold the urls of the sites I would like to ping.

class PingUrl(models.Model):
    ping_url = models.URLField(verify_exists=False)
    blog_url = models.URLField(verify_exists=False)
    blog_name = models.CharField(maxlength=200)
    
    class Admin:
        list_display = ('ping_url','blog_url', 'blog_name')

4220 Comments Read more

Quick Links

 

Tags

Wikipedia says that a, "A tag is a (relevant) keyword or term associated with or assigned to a piece of information (like picture, article, or video clip), thus describing the item and enabling keyword-based classification of information it is applied to." On imalm.com you can check out blog tags, photo tags, and links tags.

Web Feeds

Again, Wikipedia says that a, "A web feed is a data format used for serving users frequently updated content. Content distributors syndicate a web feed, thereby allowing users to subscribe to it. Making a collection of web feeds accessible in one spot is known as aggregation." On imalm.com you can check out all sorts of feed such as the blog feed, the photo feed, the links feed, and the movies feed. You can even get feeds by tags on the blog and photos section by going to /feeds/photos/tag/jon/ to see a feed of all photos with me in them. I recommend using Google Reader as a feed aggregator.

About iMalm.com

iMalm.com is simply my personal web page where I keep stuff that I use. Hopefully, other people can find a use for it too. why? Why not! Check out this article as to "why personal websites matter"