Derek Kwok's Blog

Blog about Software Development, Techniques and Discoveries.

March 15, 2011
by Derek
0 comments

Django Snippets

Today’s post is on various snippets of Python that I found very useful in writing a Django Application. Customizing Django FileField upload_to # The model field picture = models.FileField(upload_to=_profile_picture_upload_to) Auto Generate User Profile <user object>.profile will now call get_or_create method … Continue reading

March 8, 2011
by Derek
0 comments

Django Transmeta and Chinese

When using Transmeta, the default column names follow the language codes used in a Django project. This works fine for the majority of languages such as ‘en’, ‘de’, etc. But for languages like Chinese where only ‘zh-tw’ and ‘zh-cn’ is … Continue reading

March 1, 2011
by Derek
4 Comments

Jenkins and Github

In this post we are going to assume you are setting up Jenkins on Ubuntu Linux 10.10. Installing Jenkins Jenkins-CI can be installed on Ubuntu Linux through aptitude. I have outlined the key steps below. In your terminal type in … Continue reading