Blog Posts for cron

Keeping Your Django Project Alive

2010 August 17

The last thing any web developer wants is a dead website. In order to minimize on downtime and keep your viewers and clients happy, your django website deserves a little insurance. In this quick tip we're going to create a simple bash script and cron job that will ensure apache and memcached (or whatever your caching solution may be) get back on their feet quickly in the event of any unforeseen speed bumps.

continue reading

Create a Simple Twitter App in Django

2010 August 15

Doing a quick google for "django twitter" will reveal the numerous twitter apps that are available - however most are best suited for large user driven projects. If you're wanting to pull down a single user's twitter timeline - on a personal blog or portfolio for example - then these other apps might appear a bit over the top.

In this post I'll look at registering your own twitter app, creating some simple template tags for grabbing your tweets that work with the new (and now required) twitter oauth, and lastly setting up a cron job for keeping your tweets cached so as to avoid exceeding your maximum hourly request limit as well as avoiding any blocking functionality on your website.

continue reading