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')




















Feeds: