Quick shell command to add CSRF token

Source article: Quick shell command to add CSRF token To get the benefit of Django 1.2’s new CSRF protection, all POST forms will need a special token. Here is a quick command that runs through templates adding the token: find . -type f -name “*.html” -exec sed -i \ ‘s|\(<form[^>]*method=”post”[^>]*>\)\({% csrf_token %}\)\?|\1{% csrf_token %}|g’ \ […]

Announcing Sore Thumb, a thumbnail and image processing module for Django

Source article: Announcing Sore Thumb, a thumbnail and image processing module for Django I recently worked on the re-design of 2 Degrees, which required a lot of image processing on thumbnails. The thumbnails where to be in a variety of different sizes, all with rounded corners and keylines on a selection of virtually identical off-white […]

Announcing Sore Thumb, a thumbnail and image processing module for Django

Source article: Announcing Sore Thumb, a thumbnail and image processing module for Django I recently worked on the re-design of 2 Degrees, which required a lot of image processing on thumbnails. The thumbnails where to be in a variety of different sizes, all with rounded corners and keylines on a selection of virtually identical off-white […]

Announcing Sore Thumb, a thumbnail and image processing module for Django

I recently worked on the re-design of 2 Degrees, which required a lot of image processing on thumbnails. The thumbnails where to be in a variety of different sizes, all with rounded corners and keylines on a selection of virtually identical off-white backgrounds and gradients.