Django app containing a list of Icelandic addresses
You can get django-icelandic-addresses by using pip or easy_install:
$ pip install django-icelandic-addresses or $ easy_install django-icelandic-addresses
To enable ice_addresses in your project you need to add it to INSTALLED_APPS in your projects settings.py file:
INSTALLED_APPS = ( ... 'ice_addresses', ... )
Run migrations:
$ python manage.py migrate ice_addresses
Import data from staðfangaskrá:
$ python manage.py import_ice_addresses
And in code:
from ice_addresses.models import Address, Street laugavegur_1 = Address.objects.filter( street=Street.objects \ .filter(name_nominative='Laugavegur') \ .filter(postcode__id=101), house_number=1)
- Address form