Django: Country drop down list?

Posted by User on Stack Overflow See other posts from Stack Overflow or by User
Published on 2010-06-03T07:10:55Z Indexed on 2010/06/03 7:14 UTC
Read the original article Hit count: 530

I have a form for address information. One of the fields is for the address country. Currently this is just a textbox. I would like a drop down list (of ISO 3166 countries) for this. I'm a django newbie so I haven't even used a Django Select widget yet. What is a good way to do this?

Hard-code the choices in a file somewhere? Put them in the database? In the template?

© Stack Overflow or respective owner

Related posts about django

Related posts about dropdownlist