follow_redirects

follow_redirects I wrote a small utility tool for following HTTP redirects. Needed it for testing the redirects from a desktop site to a mobile site and for testing redirections when using URL shortening services. Came in handy and let me learn how to use the Python Requests library which is

Continue reading »

Validating File uploads in Django 1.0

While working on Clapton, the Django-based Content Management System (CMS), I had to write validation code for file uploads. This is needed because Clapton contains applications specific to media types such as documents which requires Word Documents, PDFs or OpenDocumentFormat files, and podcasts which requires MP3 or OGG files. But how do

Continue reading »