What I want to do is pretty straightforward. I have a site powered by django. I want to have the site automatically post to twitter any time a new object is created and saved in the database. What is the absolute best way to do this?
+3
A:
Try using the function post_to_twitter()
from this: http://www.djangosnippets.org/snippets/1339/
sreenath
2009-07-10 02:19:49
+4
A:
One way is the following:
First, handle the post_save
signal from Django. Note that post_save
passes your handler a boolean parameter created
to let you know whether it's a new object that was saved.
Then, call the python-twitter
library's PostUpdate
function within your handler to notify on twitter:
ars
2009-07-10 02:48:07