You can use the Django signals function to get a callback after saving the model:
import xmlrpclib from django.db.models.signals import post_save from app.models import MyModel def ping_handler(sender, instance=None, **kwargs): if instance is None: return rpc = xmlrpclib.Server('http://ping.feedburner.google.com/') rpc.weblogUpdates.ping(instance.title, instance.get_absolute_url()) post_save.connect(ping_handler, sender=MyModel)
Obviously, you should update this with what works for your application and read the signals in case you want another event.
source share