I started off my new django project with user registration module. I wanted to customize the django-registration to my needs. With the help of b-list, I started off to write my own registration form to handle registration. I seeked for help in django IRC channel.

After a while I found help in the form of Alisdair Sullivan. He delivered me the exact chunk of code I was looking for. With his prior permission I am making that code available to everybody. This countries.py contains 2 simple dictionaries. One with all the states in US and another with all the countries.

Download here