attractive, usable web applications


Richard's Blog - Design, coding and life in Japan

Richard

Blog Archive: June 2010

How to localize your main blog listing page using Drupal

I am just in the process of internationalizing this site into Japanese. In Drupal there is a path blog which has a list of all the teasers of the blog posts on your site. I looked into the source code of the Blog module and found the function 'blog_page_last' that feeds this list.

Tags:

Creating Rails like template helpers in Django

I wanted to make some easy link helpers so that I could have customized rounded corner links without needing JS and so that I could change them easily later if I needed to. This is so easy in Rails it is just crazy trivial. This was not the case in Django, and even though I believe it should be easier (and I believe it is easier with a little help with a method here and there).

Tags:

Error: No module named messagesdjango.contrib.contenttypes

I am not going to heavily blog about my experiences with Python and Django, but times that an error stumps me I will note it here briefly to help out with others who have similar problems. 

When installing the new messages module in Django 1.2 I got the following error

Tags:

Creating multiple blocks easily in a Drupal module pt2

Actually my first post on this subject didn't have too much to do with creating multiple blocks like in the multi-blocks plugin.

Tags:

Recent Blog Posts