Latest Post

Creating a Python Package and publish it to PyPI

You may have install Python packages in the past using PIP, like this: 1$ pip install django Here’s my first attempt at created my own public package. It is a Django app, which add features to the admin. Originally published [...]

sublime

Sublime Text 2: moving on from Textmate

After 4 years of loyal service from Textmate, it was time to an upgrade in order to improve my coding productivity. The long waited Textmate 2 being converted to an open source project still at an alpha stage hasn’t made [...]

euros-2012

The Euros 2012 website: Social stats have never been so exiting

I would like to introduce you to my latest development project at VIVA Aspire. The project is about demonstrating the impact of football players performance (whether good or bad) on the pitch and how it affects their social media print off it. [...]

osx-lion-internationalization

Django internationalization on OSX Lion

Django has excellent support for website internationalization. We will now focus on the languages side of things. First of all, we need to make sure that our Mac has the right library to generate translation files. Installing gettext If you [...]

django-cms-urlprefix

Django CMS – enable URL prefix (useful for proxy URLs)

This modification is to add a URL prefix to all URLs, so all the link generated within the CMS will have that prefix automatically implemented. The reason I have implemented that change is because I had to match the URLs [...]

osx-lion-python-django

Mac OS X Lion: The perfect setup for Python / Django

If like me, you are developing Django applications on a Mac, you will probably face a few issues when upgrading to Lion. In my case, I haven’t even upgraded, I decided to wipe it all out and start from a [...]

Screen shot 2011-07-26 at 12.08.52

A basic chat app with Django & Socket IO

Re-blog from http://codysoyland.com/2011/feb/6/evented-django-part-one-socketio-and-gevent/ I had to run the following command to success my installation on A unbuntu server: 1234567891011121314151617Install libevent dev aptitude install libevent-dev Install Python dev aptitude install python-dev Then: git clone git://github.com/codysoyland/django-socketio-example.git cd django-socketio-example easy_install pip pip install [...]

Python – Virtualenv – Modwsgi – Django on Rackspace cloud server running Ubuntu 10

Install Virtualenv: 1apt-get install python-virtualenv Install Apache mod_wsgi: 1apt-get install libapache2-mod-wsgi Create a folder called pythonenv under /usr/local/, then go to it: 12mkdir /usr/local/pythonenv cd /usr/local/pythonenv Create the virtrual env: 1virtualenv –no-site-packages Download and Install Django, and copy it to [...]

Virtualenv with modwsgi

Virtual Environments This document contains information about how to make use of Python virtual environments such as created by Ian Bicking’s virtualenv with mod_wsgi. The purpose of such Python virtual environments is to allow one to create multiple distinct Python [...]

Install Python Virtualenv with Django

Python virtualenv quickstart with Django Virtualenv allow you to package all python modules within one folder, keeping your code seperate from local environment. It is ideal if you are running multiple version of Python or other frameworks (like Django) on [...]