资 源 简 介
Django Countries
Nice little application for Django projects providing fixtures and models for a "complete" list of world countries ~~and US states~~. Also throwing in a small template filter for getting country flags by ISO 3166-1 alpha-2 country code.
Installation
Just check out the latest source and copy countries into your django site directory:
svn checkout http://django-countries.googlecode.com/svn/trunk/ django-countries
add countries to the list of installed apps and run syncdb and you"re good to go.
(Note: the models are fixed to the country and usstate tables, se models.py for details)
And for the flags hed over to famfamfam and download the ISO 3166-1 alpha-2 country code flag package. And add a flags director to your media root and copy the .gif flags there.
An alternative