Django GeoIP templatetag
I’ve published 2 template tags for use with GeoIP at geoip.py.
Hope they may be of use…
Usage:
Templatetag get_country_name returns the client’s country code
#
Example:
{% ifequal get_country “GB” %}
do something
{% endifequal %}
Templatetag get_country sets the given variable name
to the client’s country code
#